summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 4c5c1755cdaa..306e884fc0f3 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1300,6 +1300,15 @@ void DrawingML::WriteShapeTransformation( const Reference< XShape >& rXShape, sa
aPos.X -= aParentPos.X;
aPos.Y -= aParentPos.Y;
}
+ else if (m_xParent.is())
+ {
+ SdrObject* pShape = GetSdrObjectFromXShape(rXShape);
+ if (pShape)
+ {
+ aPos.X = pShape->GetRelativePos().getX();
+ aPos.Y = pShape->GetRelativePos().getY();
+ }
+ }
if ( aSize.Width < 0 )
aSize.Width = 1000;