summaryrefslogtreecommitdiff
path: root/cui/source/options/fontsubs.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-03 11:55:13 +0000
committerMichael Stahl <michael.stahl@cib.de>2020-02-05 11:01:25 +0100
commit1b5eee9efe49787ae1acc5ad6de5b9cf1fcc07ea (patch)
treed38ff1c4597b3f66e79d1c9c471820a78be6850f /cui/source/options/fontsubs.cxx
parent7bfe30c2a1c67961777ff52f20eac30a164e8340 (diff)
Related: tdf#130143 freeze/thaw around bulk insert
Change-Id: Iedb1229b56b5e7f1af1779b830cf324bcc8735e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87864 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'cui/source/options/fontsubs.cxx')
-rw-r--r--cui/source/options/fontsubs.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx
index e56543fb1e04..0504112acc7e 100644
--- a/cui/source/options/fontsubs.cxx
+++ b/cui/source/options/fontsubs.cxx
@@ -189,6 +189,11 @@ void SvxFontSubstTabPage::Reset( const SfxItemSet* )
m_xCheckLB->freeze();
m_xCheckLB->clear();
+ m_xFont1CB->freeze();
+ m_xFont1CB->clear();
+ m_xFont2CB->freeze();
+ m_xFont2CB->clear();
+
FontList aFntLst(Application::GetDefaultDevice());
sal_uInt16 nFontCount = aFntLst.GetFontNameCount();
for (sal_uInt16 i = 0; i < nFontCount; ++i)
@@ -198,6 +203,9 @@ void SvxFontSubstTabPage::Reset( const SfxItemSet* )
m_xFont2CB->append_text(rFontMetric.GetFamilyName());
}
+ m_xFont2CB->thaw();
+ m_xFont1CB->thaw();
+
sal_Int32 nCount = m_xConfig->SubstitutionCount();
if (nCount)
m_xUseTableCB->set_active(m_xConfig->IsEnabled());