summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2012-10-03 10:04:29 +0100
committerNoel Power <noel.power@suse.com>2012-10-03 10:05:52 +0100
commitfdb42c397f1d15d05a74492a233df72d832cab1c (patch)
tree166deda103d005887c56c05618bf376062b95796 /oox/source
parent4b5837d7a1f7c6e5e0e9981c0e5fb8eb7b50f586 (diff)
fix for fdo#55565 regression, failure to export vertical text in shape
Change-Id: If3d6413b1fb9e02dc26f930634f84712d7d08ca3
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/export/drawingml.cxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index ce9ff77d8026..db61ef990d06 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1241,6 +1241,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 );