summaryrefslogtreecommitdiff
path: root/oox/source/ppt/pptshapegroupcontext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/ppt/pptshapegroupcontext.cxx')
-rw-r--r--oox/source/ppt/pptshapegroupcontext.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/ppt/pptshapegroupcontext.cxx b/oox/source/ppt/pptshapegroupcontext.cxx
index 6535e12d3f81..745a9b8e847e 100644
--- a/oox/source/ppt/pptshapegroupcontext.cxx
+++ b/oox/source/ppt/pptshapegroupcontext.cxx
@@ -101,7 +101,9 @@ ContextHandlerRef PPTShapeGroupContext::onCreateContext( sal_Int32 aElementToken
case PPT_TOKEN( sp ): // Shape
{
std::shared_ptr<PPTShape> pShape( new PPTShape( meShapeLocation, "com.sun.star.drawing.CustomShape" ) );
- if( rAttribs.getBool( XML_useBgFill, false ) )
+ bool bUseBgFill = rAttribs.getBool(XML_useBgFill, false);
+ pShape->setUseBgFill(bUseBgFill);
+ if (bUseBgFill)
{
oox::drawingml::FillPropertiesPtr pBackgroundPropertiesPtr = mpSlidePersistPtr->getBackgroundProperties();
if (!pBackgroundPropertiesPtr)