Kaydet (Commit) 9009881c authored tarafından Caolán McNamara's avatar Caolán McNamara

use freeze/thaw

Change-Id: I7ffe52cd96f147956da30d551a30b9170c632383
Reviewed-on: https://gerrit.libreoffice.org/61588
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 496f3a23
...@@ -173,11 +173,13 @@ SwCharURLPage::SwCharURLPage(TabPageParent pParent, const SfxItemSet& rCoreSet) ...@@ -173,11 +173,13 @@ SwCharURLPage::SwCharURLPage(TabPageParent pParent, const SfxItemSet& rCoreSet)
std::unique_ptr<TargetList> pList( new TargetList ); std::unique_ptr<TargetList> pList( new TargetList );
SfxFrame::GetDefaultTargetList(*pList); SfxFrame::GetDefaultTargetList(*pList);
m_xTargetFrameLB->freeze();
size_t nCount = pList->size(); size_t nCount = pList->size();
for (size_t i = 0; i < nCount; ++i) for (size_t i = 0; i < nCount; ++i)
{ {
m_xTargetFrameLB->append_text(pList->at(i)); m_xTargetFrameLB->append_text(pList->at(i));
} }
m_xTargetFrameLB->thaw();
} }
SwCharURLPage::~SwCharURLPage() SwCharURLPage::~SwCharURLPage()
......
...@@ -732,6 +732,7 @@ void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, bool bSorted, bo ...@@ -732,6 +732,7 @@ void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, bool bSorted, bo
void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted, bool bWithDefault) void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted, bool bWithDefault)
{ {
const int nOffset = rToFill.get_count() > 0 ? 1 : 0; const int nOffset = rToFill.get_count() > 0 ? 1 : 0;
rToFill.freeze();
SfxStyleSheetBasePool* pPool = pDocSh->GetStyleSheetPool(); SfxStyleSheetBasePool* pPool = pDocSh->GetStyleSheetPool();
pPool->SetSearchMask(SfxStyleFamily::Char); pPool->SetSearchMask(SfxStyleFamily::Char);
SwDoc* pDoc = pDocSh->GetDoc(); SwDoc* pDoc = pDocSh->GetDoc();
...@@ -768,6 +769,7 @@ void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSor ...@@ -768,6 +769,7 @@ void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSor
rToFill.append(sId, rName); rToFill.append(sId, rName);
} }
} }
rToFill.thaw();
}; };
SwTwips GetTableWidth( SwFrameFormat const * pFormat, SwTabCols const & rCols, sal_uInt16 *pPercent, SwTwips GetTableWidth( SwFrameFormat const * pFormat, SwTabCols const & rCols, sal_uInt16 *pPercent,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment