summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-06-06 20:45:56 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-06-07 17:02:12 +0200
commit21eca1c73ffbec4417dad46bd103215e8e288880 (patch)
treeb1f49442895e5120f7436081ba8a470f2b1f08df
parent5de61f7a4ddb502730454e4bf3232f7f4b4175e1 (diff)
shapes with position:static (default) should be anchored inline
Visible with incorrect alignment of the image in the footer in the doc from bnc#764745. Change-Id: Ibea9f38f7404981a9a846c23a09f8244c6020797
-rw-r--r--oox/source/vml/vmlshape.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 44fc631b38d9..b66546ba0aba 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -612,6 +612,10 @@ Reference< XShape > ComplexShape::implConvertAndInsert( const Reference< XShapes
aPropSet.setProperty(PROP_VertOrientPosition, rShapeRect.Y);
aPropSet.setProperty(PROP_Opaque, sal_False);
}
+ else if( maTypeModel.maPosition == "static" || maTypeModel.maPosition.isEmpty())
+ { // static position (the default) means anchored inline
+ aPropSet.setProperty(PROP_AnchorType, makeAny(text::TextContentAnchorType_AS_CHARACTER));
+ }
if ( maTypeModel.maPositionVerticalRelative == "page" )
{
aPropSet.setProperty(PROP_VertOrientRelation, text::RelOrientation::PAGE_FRAME);