[Libreoffice-commits] core.git: svx/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 9 15:57:37 UTC 2018
svx/source/tbxctrls/tbcontrl.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 13a5f2693f4ade09e6e6d16186c04f18e30197e3
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Oct 9 13:44:38 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Oct 9 17:57:15 2018 +0200
use freeze/thaw
Change-Id: I14f808864ec99258731e12879acffdd130ab0613
Reviewed-on: https://gerrit.libreoffice.org/61586
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index a9a78125cddd..98f491711a95 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1437,8 +1437,10 @@ ColorWindow::ColorWindow(std::shared_ptr<PaletteManager> const & rPaletteManager
mxPaletteListBox->connect_changed(LINK(this, ColorWindow, SelectPaletteHdl));
std::vector<OUString> aPaletteList = mxPaletteManager->GetPaletteList();
+ mxPaletteListBox->freeze();
for (std::vector<OUString>::iterator it = aPaletteList.begin(); it != aPaletteList.end(); ++it)
mxPaletteListBox->append_text(*it);
+ mxPaletteListBox->thaw();
OUString aPaletteName( officecfg::Office::Common::UserColors::PaletteName::get() );
mxPaletteListBox->set_active_text(aPaletteName);
const int nSelectedEntry(mxPaletteListBox->get_active());
More information about the Libreoffice-commits
mailing list