summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/drawingml/shape.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index e43b6b9ed5b0..7357e36f0481 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -1966,9 +1966,16 @@ void Shape::convertSmartArtToMetafile(XmlFilterBase const & rFilterBase)
// from them
Reference<XShape> xShape(renderDiagramToGraphic(rFilterBase));
Reference<XShapes> xShapes(mxShape, UNO_QUERY_THROW);
+ tools::Rectangle aBackgroundRect
+ = SdrObject::getSdrObjectFromXShape(
+ Reference<XShape>(xShapes->getByIndex(0), UNO_QUERY_THROW))
+ ->GetLogicRect();
while (xShapes->hasElements())
xShapes->remove(Reference<XShape>(xShapes->getByIndex(0), UNO_QUERY_THROW));
xShapes->add(xShape);
+ SdrObject::getSdrObjectFromXShape(
+ Reference<XShape>(xShapes->getByIndex(0), UNO_QUERY_THROW))
+ ->NbcSetLogicRect(aBackgroundRect);
}
catch (const Exception&)
{