diff options
author | Tibor Nagy <nagy.tibor2@nisz.hu> | 2021-12-14 14:44:15 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2022-01-03 13:41:41 +0100 |
commit | 4574a1ea408c2ac30042dca32d02207ec7add4da (patch) | |
tree | 968c3acb4ae910a8a4b82804c2d656922775876f /oox | |
parent | 87db920b141fe9846cbd1b37fff3a9806a9b5c2d (diff) |
tdf#146223 PPTX import: fix master objects visible property
Master objects were always visible after the import, which
could change the background of the slides.
Change-Id: Idc5260718f2916e207f751286044e9a7fabdee89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126833
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ppt/slidefragmenthandler.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/source/ppt/slidefragmenthandler.cxx b/oox/source/ppt/slidefragmenthandler.cxx index 4512ee156261..79ea427b5227 100644 --- a/oox/source/ppt/slidefragmenthandler.cxx +++ b/oox/source/ppt/slidefragmenthandler.cxx @@ -78,9 +78,14 @@ SlideFragmentHandler::~SlideFragmentHandler() case PPT_TOKEN( sld ): // CT_CommonSlideData { Reference< XDrawPage > xSlide( mpSlidePersistPtr->getPage() ); + Reference< css::beans::XPropertySet > xSet(xSlide, UNO_QUERY); PropertyMap aPropMap; PropertySet aSlideProp( xSlide ); + OptValue<bool> aShowMasterShapes = rAttribs.getBool(XML_showMasterSp); + if (aShowMasterShapes.has() && !aShowMasterShapes.get()) + xSet->setPropertyValue("IsBackgroundObjectsVisible", Any(false)); + aPropMap.setProperty( PROP_Visible, rAttribs.getBool( XML_show, true )); aSlideProp.setProperties( aPropMap ); |