diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-08-02 08:57:54 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-08-07 07:53:45 +0200 |
commit | 0b89df718b6b8aac3bd1e0402a9a73ffe11c7100 (patch) | |
tree | 83ebb548f2066774933b5df0ef28e73f1511c9ba /oox | |
parent | 9799a95bf8681a7575ba85a698eb1752622af080 (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/+/155222
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ash@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ppt/pptshape.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx index 2d0924406536..9634d44e83fe 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 : |