From 5c9fe8c42f5b51debe58b4806c57b0784d99665a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 9 Oct 2018 14:50:28 +0100 Subject: [PATCH] use freeze/thaw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia5e24c6eab1f33d8a9ef8232095cd95c68386a43 Reviewed-on: https://gerrit.libreoffice.org/61592 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sfx2/source/dialog/mgetempl.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index 4daa88b92713..db19bb92dc1f 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -129,6 +129,8 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf { SfxStyleSheetBase* pPoolStyle = pPool->First(); + m_xFollowLb->freeze(); + while ( pPoolStyle ) { m_xFollowLb->append_text(pPoolStyle->GetName()); @@ -138,6 +140,8 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf // A new Template is not yet in the Pool if (m_xFollowLb->find_text(pStyle->GetName()) == -1) m_xFollowLb->append_text(pStyle->GetName()); + + m_xFollowLb->thaw(); } else { @@ -148,6 +152,8 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf if ( pStyle->HasParentSupport() && pPool ) { + m_xBaseLb->freeze(); + if ( pStyle->HasClearParentSupport() ) // the base template can be set to NULL m_xBaseLb->append_text(SfxResId(STR_NONE)); @@ -162,6 +168,8 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf m_xBaseLb->append_text(aStr); pPoolStyle = pPool->Next(); } + + m_xBaseLb->thaw(); } else {