diff options
author | Katarina Machalkova <bubli@bubli.org> | 2011-09-04 14:22:11 +0200 |
---|---|---|
committer | Katarina Machalkova <bubli@bubli.org> | 2011-09-04 14:27:18 +0200 |
commit | 64767120e533ce4277095f405238d54bcb354f39 (patch) | |
tree | 19887c4cfabc32f01ef8661aef011ebc075a35c9 /cui | |
parent | 5456b230a215b240ad67fdef137616afedb209e4 (diff) |
Fix for i#95158: Don't reset selected colour on tab switch
Set modified flag if position in the listbox changes
(also for bitmaps, hatching & friends)
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tparea.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx index 62c257ceb1b7..a177e92ca968 100644 --- a/cui/source/tabpages/tparea.cxx +++ b/cui/source/tabpages/tparea.cxx @@ -947,6 +947,7 @@ int SvxAreaTabPage::DeactivatePage( SfxItemSet* _pSet ) { if( nDlgType == 0 ) // Flaechen-Dialog { + sal_uInt16 nPosOrig = nPos; XFillStyle eStyle = (XFillStyle) aTypeLB.GetSelectEntryPos(); switch( eStyle ) { @@ -954,24 +955,32 @@ int SvxAreaTabPage::DeactivatePage( SfxItemSet* _pSet ) { nPageType = PT_GRADIENT; nPos = aLbGradient.GetSelectEntryPos(); + if( nPosOrig != nPos ) + *pnGradientListState |= CT_MODIFIED; } break; case XFILL_HATCH: { nPageType = PT_HATCH; nPos = aLbHatching.GetSelectEntryPos(); + if( nPosOrig != nPos ) + *pnHatchingListState |= CT_MODIFIED; } break; case XFILL_BITMAP: { nPageType = PT_BITMAP; nPos = aLbBitmap.GetSelectEntryPos(); + if( nPosOrig != nPos ) + *pnBitmapListState |= CT_MODIFIED; } break; case XFILL_SOLID: { nPageType = PT_COLOR; nPos = aLbColor.GetSelectEntryPos(); + if( nPosOrig != nPos ) + *pnColorTableState |= CT_MODIFIED; } break; default: ;//prevent warning |