[Libreoffice-commits] .: Branch 'libreoffice-3-6' - oox/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 4 02:15:27 PDT 2012
oox/source/export/drawingml.cxx | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
New commits:
commit 02162cb7d019d2ab80d0d907a9bde212114ba89a
Author: Noel Power <noel.power at suse.com>
Date: Wed Oct 3 10:04:29 2012 +0100
fix for fdo#55565 regression, failure to export vertical text in shape
Change-Id: If3d6413b1fb9e02dc26f930634f84712d7d08ca3
Signed-off-by: Michael Meeks <michael.meeks at suse.com>
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index f2c28e9..bc0e987 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 );
More information about the Libreoffice-commits
mailing list