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
committerCaolán McNamara <caolanm@redhat.com>2020-02-03 17:10:17 +0100
commitd29a945f164b9b0a78578a99f85769130721e6bb (patch)
treeab21e3631af4ad631da303f4c31d9ce6708dd076 /cui/source/options/fontsubs.cxx
parent1bbabd67720d6d2cfcca15d811c625562fcffad6 (diff)
Related: tdf#130143 freeze/thaw around bulk insert
Change-Id: Iedb1229b56b5e7f1af1779b830cf324bcc8735e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87862 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
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 553cdb20cd52..5db165ccfa6a 100644
--- a/cui/source/options/fontsubs.cxx
+++ b/cui/source/options/fontsubs.cxx
@@ -183,6 +183,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)
@@ -192,6 +197,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());