diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-06-06 20:27:24 +0100 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2020-06-07 00:58:22 +0200 |
commit | 900ffff8b5718113e5b3ab7e9fbf35b999661c39 (patch) | |
tree | 30a504fb119afd67b98b2d6f5d227b913b26f944 /cui | |
parent | facd251a4099e8664a84d9d82df6e7f92e449ed6 (diff) |
Resolves: tdf#125981 use original label, not current label
Change-Id: Iddc1d3e38e70d91d60947d9867dcfb03cb5128d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95677
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/autocdlg.hxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx index b94fd3d80fef..11eb7b9de89b 100644 --- a/cui/source/inc/autocdlg.hxx +++ b/cui/source/inc/autocdlg.hxx @@ -288,7 +288,7 @@ private: std::unique_ptr<weld::Button> m_xDblEndQuotePB; std::unique_ptr<weld::Label> m_xDblEndExFT; std::unique_ptr<weld::Button> m_xDblStandardPB; - std::unique_ptr<weld::Label> m_xStandard; + OUString m_sStandard; /// For anything but writer std::unique_ptr<weld::TreeView> m_xCheckLB; /// Just for writer diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 74e1ef127659..4f1c0f3632e0 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -1563,7 +1563,7 @@ OfaQuoteTabPage::OfaQuoteTabPage(weld::Container* pPage, weld::DialogController* , m_xDblEndQuotePB(m_xBuilder->weld_button("enddouble")) , m_xDblEndExFT(m_xBuilder->weld_label("doubleendex")) , m_xDblStandardPB(m_xBuilder->weld_button("defaultdouble")) - , m_xStandard(m_xBuilder->weld_label("singlestartex")) + , m_sStandard(m_xSglStartExFT->get_label()) , m_xCheckLB(m_xBuilder->weld_tree_view("checklist")) , m_xSwCheckLB(m_xBuilder->weld_tree_view("list")) { @@ -1852,7 +1852,7 @@ IMPL_LINK(OfaQuoteTabPage, StdQuoteHdl, weld::Button&, rBtn, void) OUString OfaQuoteTabPage::ChangeStringExt_Impl( sal_UCS4 cChar ) { if (!cChar) - return m_xStandard->get_label(); + return m_sStandard; // convert codepoint value to unicode-hex string sal_UCS4 aStrCodes[32] = { 0, ' ', '(', 'U', '+', '0' }; |