From 63961b9b45c95999dcc6b5ab080035609068ff69 Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Sun, 5 Mar 2017 22:56:36 +0100 Subject: 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 Reviewed-by: Katarina Behrens --- cui/source/tabpages/tparea.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cui') 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( rSet.Get( GetWhich( XATTR_FILLSTYLE ) ) ).GetValue() ); + XFillStyleItem aFillStyleItem( static_cast( rSet.Get( GetWhich( XATTR_FILLSTYLE ) ) ) ); + eXFS = aFillStyleItem.GetValue(); + m_rXFSet.Put( aFillStyleItem ); } + switch(eXFS) { default: -- cgit