summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2023-08-02 08:57:54 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-08-08 10:19:56 +0200
commit35920332b4170cd4696941a74b06355af7147bf6 (patch)
treee32865c5d45de49bc4702f203946f1f4724bc679 /oox
parentdbcbe2ad59b5403efab0947e3cc8da5c3f9958b6 (diff)
oox: don't use master style by default
By default a shape with empty type attribute in placeholder tag: <p:ph/> will get subtype = XML_obj (oox/source/drawingml/shapecontext.cxx:81) When it is not referencing any master style shape by idx attribute we shouldn't use master list style to be compatible with MSO. Change-Id: Ib695b695885892dbe659e70a28daff1799c5f50e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155232 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155415
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ppt/pptshape.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx
index be7046c7498e..ddc3ea935a70 100644
--- a/oox/source/ppt/pptshape.cxx
+++ b/oox/source/ppt/pptshape.cxx
@@ -206,7 +206,8 @@ void PPTShape::addShape(
case XML_obj :
{
sServiceName = sOutlinerShapeService;
- aMasterTextListStyle = rSlidePersist.getMasterPersist() ? rSlidePersist.getMasterPersist()->getBodyTextStyle() : rSlidePersist.getBodyTextStyle();
+ if (getSubTypeIndex().has_value())
+ aMasterTextListStyle = rSlidePersist.getMasterPersist() ? rSlidePersist.getMasterPersist()->getBodyTextStyle() : rSlidePersist.getBodyTextStyle();
}
break;
case XML_body :