diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-03-26 14:34:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-03-26 21:02:22 +0100 |
commit | 0d6a8aaab7c27c8e1836db9a5f81d43d6379cbec (patch) | |
tree | fe1417a8d897daeca4af15b81b57dc5df5a440ab /cui | |
parent | 80f386f787ad59936ead2022e6d932a6d441c6e9 (diff) |
explicitly set no text emphasis on the non-header entries
Change-Id: Ie8fb850febcb4b3808c3f8846f5324ea2bbb1bec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91146
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/thesdlg.cxx | 3 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index 5792d456b702..612f5fe019b2 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -107,12 +107,13 @@ bool SvxThesaurusDialog::UpdateAlternativesBox_Impl() OUString sHeading = OUString::number(i + 1) + ". " + rMeaningTxt; m_xAlternativesCT->append_text(sHeading); m_xAlternativesCT->set_text_emphasis(nRow, true, 0); - ++nRow; + for (sal_Int32 k = 0; k < nSynonyms; ++k) { // GetThesaurusReplaceText will strip the leading spaces m_xAlternativesCT->append_text(" " + pSynonyms[k]); + m_xAlternativesCT->set_text_emphasis(nRow, false, 0); ++nRow; } } diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index bf280e370660..738a6986cd6e 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1769,6 +1769,7 @@ void SvxEditModulesDlg::LangSelectHdl_Impl(const SvxLanguageBox* pBox) m_xModulesCLB->set_id(nRow, sId); m_xModulesCLB->set_toggle(nRow, bCheck ? TRISTATE_TRUE : TRISTATE_FALSE, 0); m_xModulesCLB->set_text(nRow, aTxt, 1); + m_xModulesCLB->set_text_emphasis(nRow, false, 1); ++nRow; } } @@ -1819,6 +1820,7 @@ void SvxEditModulesDlg::LangSelectHdl_Impl(const SvxLanguageBox* pBox) m_xModulesCLB->set_id(nRow, sId); m_xModulesCLB->set_toggle(nRow, bCheck ? TRISTATE_TRUE : TRISTATE_FALSE, 0); m_xModulesCLB->set_text(nRow, aTxt, 1); + m_xModulesCLB->set_text_emphasis(nRow, false, 1); ++nRow; } } @@ -1868,6 +1870,7 @@ void SvxEditModulesDlg::LangSelectHdl_Impl(const SvxLanguageBox* pBox) m_xModulesCLB->set_id(nRow, sId); m_xModulesCLB->set_toggle(nRow, bCheck ? TRISTATE_TRUE : TRISTATE_FALSE, 0); m_xModulesCLB->set_text(nRow, aTxt, 1); + m_xModulesCLB->set_text_emphasis(nRow, false, 1); ++nRow; } } @@ -1917,6 +1920,7 @@ void SvxEditModulesDlg::LangSelectHdl_Impl(const SvxLanguageBox* pBox) m_xModulesCLB->set_id(nRow, sId); m_xModulesCLB->set_toggle(nRow, bCheck ? TRISTATE_TRUE : TRISTATE_FALSE, 0); m_xModulesCLB->set_text(nRow, aTxt, 1); + m_xModulesCLB->set_text_emphasis(nRow, false, 1); ++nRow; } } |