summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2017-03-05 22:56:36 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-03-06 13:18:15 +0000
commit63961b9b45c95999dcc6b5ab080035609068ff69 (patch)
treea76f779d94c6ed0a8c0ce5926deb46301b255942
parent38fd98a0513638634868132e9c922366bcc8c622 (diff)
tdf#103847: Pass also XFillStyleItem to subtabs
this resolves the issue of non-preset gradient and hatch values not being shown. Bitmap is still broken (beyond repair) Change-Id: Ifad8f3a56b534e26def69c0b0bb2ed55de53bcda Reviewed-on: https://gerrit.libreoffice.org/34908 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r--cui/source/tabpages/tparea.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index 9870d84c8374..8b782f36d617 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -179,8 +179,11 @@ void SvxAreaTabPage::ActivatePage( const SfxItemSet& rSet )
drawing::FillStyle eXFS = drawing::FillStyle_NONE;
if( rSet.GetItemState( XATTR_FILLSTYLE ) != SfxItemState::DONTCARE )
{
- eXFS = (drawing::FillStyle) ( static_cast<const XFillStyleItem&>( rSet.Get( GetWhich( XATTR_FILLSTYLE ) ) ).GetValue() );
+ XFillStyleItem aFillStyleItem( static_cast<const XFillStyleItem&>( rSet.Get( GetWhich( XATTR_FILLSTYLE ) ) ) );
+ eXFS = aFillStyleItem.GetValue();
+ m_rXFSet.Put( aFillStyleItem );
}
+
switch(eXFS)
{
default: