From f13f3b42eb113ead6fcffba39e8fcfb31808627d 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(+) (limited to 'oox') diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx index 88282dd7870f..8a68bd744709 100644 --- a/oox/source/vml/vmldrawing.cxx +++ b/oox/source/vml/vmldrawing.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include "oox/core/xmlfilterbase.hxx" @@ -228,6 +229,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( awt::Size( rShapeRect.Width, rShapeRect.Height ) ); } -- cgit v1.2.3