diff options
author | Krisztian Pinter <pin.terminator@gmail.com> | 2014-07-04 11:41:28 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2014-09-17 10:19:34 +0200 |
commit | d262cf190069fe9bb369e05c9a63c27ea9515b0f (patch) | |
tree | 98e2238d1a7aaf33f25c9612d5068b305fe8c904 | |
parent | e3fcf5591eb2ac28a96315fb089f5c88e0c6aa1f (diff) |
Fix SvxColorWindow_Impl::StateChanged updating
Change-Id: Ifb884f8830280d44ea3c73caf319109593bbebf9
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index e002db8a02aa..05044cf4fb11 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1180,15 +1180,7 @@ void SvxColorWindow_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eState, co { if (( nSID == SID_COLOR_TABLE ) && ( pState->ISA( SvxColorListItem ))) { - XColorListRef pColorList = ((SvxColorListItem *)pState)->GetColorList(); - const long nColorCount(pColorList->Count()); - const Size aNewSize(aColorSet.layoutAllVisible(nColorCount)); - aColorSet.SetOutputSizePixel(aNewSize); - static sal_Int32 nAdd = 4; - - SetOutputSizePixel(Size(aNewSize.Width() + nAdd, aNewSize.Height() + nAdd)); - aColorSet.Clear(); - aColorSet.addEntriesForXColorList(*pColorList); + Update(); } else if ( SfxItemState::DEFAULT <= eState ) { |