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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Oct 9 18:43:54 UTC 2018


 sw/source/ui/chrdlg/chardlg.cxx   |    2 ++
 sw/source/uibase/utlui/uitool.cxx |    2 ++
 2 files changed, 4 insertions(+)

New commits:
commit 9009881c46fd67edeea52099d7e123c443d1b71f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Oct 9 13:54:14 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Oct 9 20:43:32 2018 +0200

    use freeze/thaw
    
    Change-Id: I7ffe52cd96f147956da30d551a30b9170c632383
    Reviewed-on: https://gerrit.libreoffice.org/61588
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/ui/chrdlg/chardlg.cxx b/sw/source/ui/chrdlg/chardlg.cxx
index 06b04d1c7921..6ad98ca3fbf8 100644
--- a/sw/source/ui/chrdlg/chardlg.cxx
+++ b/sw/source/ui/chrdlg/chardlg.cxx
@@ -173,11 +173,13 @@ SwCharURLPage::SwCharURLPage(TabPageParent pParent, const SfxItemSet& rCoreSet)
     std::unique_ptr<TargetList> pList( new TargetList );
     SfxFrame::GetDefaultTargetList(*pList);
 
+    m_xTargetFrameLB->freeze();
     size_t nCount = pList->size();
     for (size_t i = 0; i < nCount; ++i)
     {
         m_xTargetFrameLB->append_text(pList->at(i));
     }
+    m_xTargetFrameLB->thaw();
 }
 
 SwCharURLPage::~SwCharURLPage()
diff --git a/sw/source/uibase/utlui/uitool.cxx b/sw/source/uibase/utlui/uitool.cxx
index 506583559287..ff9438a8111f 100644
--- a/sw/source/uibase/utlui/uitool.cxx
+++ b/sw/source/uibase/utlui/uitool.cxx
@@ -732,6 +732,7 @@ void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, bool bSorted, bo
 void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted, bool bWithDefault)
 {
     const int nOffset = rToFill.get_count() > 0 ? 1 : 0;
+    rToFill.freeze();
     SfxStyleSheetBasePool* pPool = pDocSh->GetStyleSheetPool();
     pPool->SetSearchMask(SfxStyleFamily::Char);
     SwDoc* pDoc = pDocSh->GetDoc();
@@ -768,6 +769,7 @@ void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSor
                 rToFill.append(sId, rName);
         }
     }
+    rToFill.thaw();
 };
 
 SwTwips GetTableWidth( SwFrameFormat const * pFormat, SwTabCols const & rCols, sal_uInt16 *pPercent,


More information about the Libreoffice-commits mailing list