colorwindow: Update recent colors list immediately
Change-Id: Ieb6277f0962f88dfa55b6af80535ec8af497433e
This commit is contained in:
parent
2b54af3b64
commit
2c3c7529b5
1 changed files with 7 additions and 3 deletions
|
@ -1242,12 +1242,16 @@ IMPL_LINK(SvxColorWindow_Impl, SelectHdl, SvxColorValueSet*, pColorSet)
|
|||
while in Dispatch()), accessing members will crash in this case. */
|
||||
pColorSet->SetNoSelection();
|
||||
|
||||
if ( pColorSet != mpRecentColorSet )
|
||||
{
|
||||
mrPaletteManager.AddRecentColor( aColor );
|
||||
if ( !IsInPopupMode() )
|
||||
mrPaletteManager.ReloadRecentColorSet( *mpRecentColorSet );
|
||||
}
|
||||
|
||||
if ( IsInPopupMode() )
|
||||
EndPopupMode();
|
||||
|
||||
if ( pColorSet != mpRecentColorSet )
|
||||
mrPaletteManager.AddRecentColor( aColor );
|
||||
|
||||
if ( maSelectedLink.IsSet() )
|
||||
maSelectedLink.Call(&aColor);
|
||||
|
||||
|
|
Loading…
Reference in a new issue