[Libreoffice-commits] core.git: cui/source sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 3 16:10:55 UTC 2020


 cui/source/options/fontsubs.cxx             |    8 ++++++++
 sw/source/uibase/dialog/watermarkdialog.cxx |    2 ++
 2 files changed, 10 insertions(+)

New commits:
commit d29a945f164b9b0a78578a99f85769130721e6bb
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Feb 3 11:55:13 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Feb 3 17:10:17 2020 +0100

    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 at redhat.com>

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());
diff --git a/sw/source/uibase/dialog/watermarkdialog.cxx b/sw/source/uibase/dialog/watermarkdialog.cxx
index 4609a66eca70..26589813ec18 100644
--- a/sw/source/uibase/dialog/watermarkdialog.cxx
+++ b/sw/source/uibase/dialog/watermarkdialog.cxx
@@ -54,12 +54,14 @@ void SwWatermarkDialog::InitFields()
         pFontList = xFontList.get();
     }
 
+    m_xFont->freeze();
     sal_uInt16 nFontCount = pFontList->GetFontNameCount();
     for (sal_uInt16 i = 0; i < nFontCount; ++i)
     {
         const FontMetric& rFontMetric = pFontList->GetFontName(i);
         m_xFont->append_text(rFontMetric.GetFamilyName());
     }
+    m_xFont->thaw();
 
     m_xOKButton->connect_clicked(LINK(this, SwWatermarkDialog, OKButtonHdl));
 


More information about the Libreoffice-commits mailing list