summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/shapecontext.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2018-07-20 17:21:43 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2018-08-02 17:16:08 +0200
commitbf3420110cdd21490bc8d49a471340e747585159 (patch)
tree7ab84ace33c8dc6f5c1872c50d9c5b0e58636ee2 /oox/source/drawingml/shapecontext.cxx
parent587d2c036bbd250c9186c927ab7097d64742c5bb (diff)
tdf#116350 Import preset text geometry (text effects)
"Font effect" implementation, instead of normal text, content is converted to "fontwork". Change-Id: I5d02c7faedb66a4b919e64ae1b830bffb69984c1 Reviewed-on: https://gerrit.libreoffice.org/58358 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'oox/source/drawingml/shapecontext.cxx')
-rw-r--r--oox/source/drawingml/shapecontext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/shapecontext.cxx b/oox/source/drawingml/shapecontext.cxx
index 22fa1671be31..62e81dba5f58 100644
--- a/oox/source/drawingml/shapecontext.cxx
+++ b/oox/source/drawingml/shapecontext.cxx
@@ -97,7 +97,7 @@ ContextHandlerRef ShapeContext::onCreateContext( sal_Int32 aElementToken, const
{
if (!mpShapePtr->getTextBody())
mpShapePtr->setTextBody( std::make_shared<TextBody>() );
- return new TextBodyContext( *this, *mpShapePtr->getTextBody() );
+ return new TextBodyContext( *this, mpShapePtr );
}
case XML_txXfrm:
{
@@ -111,7 +111,7 @@ ContextHandlerRef ShapeContext::onCreateContext( sal_Int32 aElementToken, const
case XML_bodyPr:
if (!mpShapePtr->getTextBody())
mpShapePtr->setTextBody( std::make_shared<TextBody>() );
- return new TextBodyPropertiesContext( *this, rAttribs, mpShapePtr->getTextBody()->getTextProperties() );
+ return new TextBodyPropertiesContext( *this, rAttribs, mpShapePtr );
break;
case XML_txbx:
break;