Kaydet (Commit) d262cf19 authored tarafından Krisztian Pinter's avatar Krisztian Pinter Kaydeden (comit) Tomaž Vajngerl

Fix SvxColorWindow_Impl::StateChanged updating

Change-Id: Ifb884f8830280d44ea3c73caf319109593bbebf9
üst e3fcf559
......@@ -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 )
{
......
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