summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2016-12-09 12:38:48 +0000
committerAndras Timar <andras.timar@collabora.com>2016-12-10 10:30:05 +0000
commitf9e31fe677d863f84cd3afa025e45a77432b8886 (patch)
tree61b44e8a89b99ab515f11449a88ceb731fdd7d36 /oox
parent3e60ccb74ac6589e14a479c6646c63a4e5ac4e35 (diff)
tdf#104445: PPTX import: Extra bullets are added to placeholder text
Reviewed-on: https://gerrit.libreoffice.org/31771 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com> (cherry picked from commit cb598029835477326b190bc99abd31a487cc5a91) Change-Id: I25ce98ed391f70292bed6238645b121b9cf50d5e Reviewed-on: https://gerrit.libreoffice.org/31791 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/textbody.cxx4
-rw-r--r--oox/source/ppt/pptshape.cxx2
2 files changed, 4 insertions, 2 deletions
diff --git a/oox/source/drawingml/textbody.cxx b/oox/source/drawingml/textbody.cxx
index 662a52fd0113..8efb70d1cdd0 100644
--- a/oox/source/drawingml/textbody.cxx
+++ b/oox/source/drawingml/textbody.cxx
@@ -23,6 +23,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include "drawingml/textparagraph.hxx"
#include "oox/helper/propertyset.hxx"
+#include <oox/token/properties.hxx>
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::text;
@@ -110,10 +111,11 @@ void TextBody::ApplyStyleEmpty(
{
Reference< XPropertySet > xProps(xText, UNO_QUERY);
PropertyMap aioBulletList;
+ aioBulletList.setProperty< sal_Int32 >(PROP_LeftMargin, 0); // Init bullets left margin to 0 (no bullets).
float nCharHeight = xProps->getPropertyValue("CharHeight").get<float>();
TextParagraphProperties aParaProp;
aParaProp.apply(*pTextParagraphStyle);
- aParaProp.pushToPropSet(&rFilterBase, xProps, aioBulletList, &pTextParagraphStyle->getBulletList(), false, nCharHeight, true);
+ aParaProp.pushToPropSet(&rFilterBase, xProps, aioBulletList, &pTextParagraphStyle->getBulletList(), true, nCharHeight, true);
}
}
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx
index f60f929a04cf..1460c70d2cce 100644
--- a/oox/source/ppt/pptshape.cxx
+++ b/oox/source/ppt/pptshape.cxx
@@ -351,7 +351,7 @@ void PPTShape::addShape(
}
// Apply text properties on placeholder text inside this placeholder shape
- if (mpPlaceholder.get() != nullptr && getTextBody() && getTextBody()->isEmpty())
+ if (meShapeLocation == Slide && mpPlaceholder.get() != nullptr && getTextBody() && getTextBody()->isEmpty())
{
Reference < XText > xText(mxShape, UNO_QUERY);
if (xText.is())