Kaydet (Commit) 5eba05a0 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Noel Grandin

fix mismerge

thanks to noel

Change-Id: Id8c4fb92899e80bdb923b77ea9dff74961e84ea3
Reviewed-on: https://gerrit.libreoffice.org/50919Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 7a683c31
......@@ -52,7 +52,12 @@ short SwBreakDlg::run()
const int nPos = m_xPageCollBox->get_active();
if (nPos != 0 && nPos != -1)
{
oPgNum = static_cast<sal_uInt16>(m_xPageNumEdit->get_value());
m_aTemplate = m_xPageCollBox->get_active_text();
oPgNum = boost::none;
if (m_xPageNumBox->get_active())
{
oPgNum = static_cast<sal_uInt16>(m_xPageNumEdit->get_value());
}
}
}
}
......
......@@ -43,7 +43,7 @@ class SwBreakDlg
std::unique_ptr<weld::SpinButton> m_xPageNumEdit;
std::unique_ptr<weld::Button> m_xOkBtn;
OUString aTemplate;
OUString m_aTemplate;
sal_uInt16 nKind;
::boost::optional<sal_uInt16> oPgNum;
......@@ -60,7 +60,7 @@ class SwBreakDlg
public:
SwBreakDlg(weld::Window *pParent, SwWrtShell &rSh);
short run();
const OUString& GetTemplateName() const { return aTemplate; }
const OUString& GetTemplateName() const { return m_aTemplate; }
sal_uInt16 GetKind() const { return nKind; }
const ::boost::optional<sal_uInt16>& GetPageNumber() const { return oPgNum; }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment