diff options
author | Noel Power <noel.power@suse.com> | 2012-10-03 10:04:29 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2012-10-03 12:10:05 +0100 |
commit | 340e06c4e2c32358d0977af69714531729ff2905 (patch) | |
tree | 20f5793c3297c57f4f45ffd57adf61fa175cfc81 /oox/source/export/drawingml.cxx | |
parent | 21ad1ee67ac5b7ba9329189b4e7a7e115f80a6b8 (diff) |
fix for fdo#55565 regression, failure to export vertical text in shape
Change-Id: If3d6413b1fb9e02dc26f930634f84712d7d08ca3
Diffstat (limited to 'oox/source/export/drawingml.cxx')
-rw-r--r-- | oox/source/export/drawingml.cxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index f2c28e985655..bc0e9879332f 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1245,6 +1245,27 @@ void DrawingML::WriteText( Reference< XInterface > rXIface ) } } + if ( GETA( CustomShapeGeometry ) ) + { + Sequence< PropertyValue > aProps; + if ( mAny >>= aProps ) + { + for ( sal_Int32 i = 0, nElems = aProps.getLength(); i < nElems; ++i ) + { + sal_Int32 nTextRotateAngle = 0; + if ( aProps[ i ].Name.equals( "TextPreRotateAngle" ) && ( aProps[ i ].Value >>= nTextRotateAngle ) ) + { + if ( nTextRotateAngle == -90 ) + { + sWritingMode = "vert"; + bVertical = sal_True; + } + break; + } + } + } + } + TextHorizontalAdjust eHorizontalAlignment( TextHorizontalAdjust_CENTER ); bool bHorizontalCenter = false; GET( eHorizontalAlignment, TextHorizontalAdjust ); |