summaryrefslogtreecommitdiff
path: root/cui/source/tabpages
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-02-13 10:50:03 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-02-13 12:01:01 +0100
commit206c088c092d484dbbed82ff3c18e6dfc00de513 (patch)
tree8af40f74c8f794b6152e73142cca8315aa081e37 /cui/source/tabpages
parent3696f90a559293c94d42e07c8084c728b5f296e6 (diff)
SvxBackgroundTabPage::FillItemSet: handle XFILL_GRADIENT -> XFILL_SOLID
This makes it possible to turn off the gradient background of a Writer frame. Change-Id: Ic7bdfec252847f463da47c838c7de0fdb7625869
Diffstat (limited to 'cui/source/tabpages')
-rw-r--r--cui/source/tabpages/backgrnd.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index b5c2f6309783..15b6d10f0c4e 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -785,6 +785,9 @@ sal_Bool SvxBackgroundTabPage::FillItemSet( SfxItemSet& rCoreSet )
}
else if ( SFX_ITEM_DEFAULT == rOldSet.GetItemState( nWhich, sal_False ) )
rCoreSet.ClearItem( nWhich );
+ // Handle XFILL_GRADIENT -> XFILL_SOLID
+ XFillStyleItem aFillStyleItem(XFILL_SOLID, GetWhich(SID_ATTR_FILL_STYLE));
+ rCoreSet.Put(aFillStyleItem);
}
else
{