From b70369eab6da25b6f7b8a0d4383aa41a80dab67f Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 29 Apr 2013 16:10:00 +0200 Subject: place ooxml shapes properly to paragraph area (part of bnc#816583) style="position:absolute;left:0" is relative to paragraph area, not paragraph text area (which is different if it's indented). Change-Id: I12a1d2b8a68aa3fa9c65b3d469118b5334f83d7f --- oox/source/vml/vmldrawing.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx index 1a3530db9449..4db116432bd8 100644 --- a/oox/source/vml/vmldrawing.cxx +++ b/oox/source/vml/vmldrawing.cxx @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include "oox/core/xmlfilterbase.hxx" @@ -236,6 +237,8 @@ Reference< XShape > Drawing::createAndInsertXShape( const OUString& rService, xPropSet->setPropertyValue( OUString::createFromAscii( "VertOrient" ), makeAny( VertOrientation::NONE ) ); xPropSet->setPropertyValue( OUString::createFromAscii( "HoriOrientPosition" ), makeAny( rShapeRect.X ) ); xPropSet->setPropertyValue( OUString::createFromAscii( "VertOrientPosition" ), makeAny( rShapeRect.Y ) ); + xPropSet->setPropertyValue( OUString::createFromAscii( "HoriOrientRelation" ), makeAny( RelOrientation::FRAME ) ); + xPropSet->setPropertyValue( OUString::createFromAscii( "VertOrientRelation" ), makeAny( RelOrientation::FRAME ) ); } xShape->setSize( Size( rShapeRect.Width, rShapeRect.Height ) ); } -- cgit