diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2012-02-14 19:49:31 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-02-14 19:50:40 +0530 |
commit | 8167b8f3d9ca506a30bd8454d934d713033cb8b4 (patch) | |
tree | 8fb620f1bf32db36ccfa15bb50c41161d0be1c14 /oox/source/drawingml/shape.cxx | |
parent | cc459ea8c1d2d398c0bad5e52591af93ebc4db38 (diff) |
n744510: Improved 'vert' text imports.
Diffstat (limited to 'oox/source/drawingml/shape.cxx')
-rw-r--r-- | oox/source/drawingml/shape.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 54d9527e03d3..a6e86c3d4e52 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -528,15 +528,17 @@ Reference< XShape > Shape::createAndInsert( mpCustomShapePropertiesPtr->setMirroredX( sal_True ); if ( mbFlipV ) mpCustomShapePropertiesPtr->setMirroredY( sal_True ); - if( mpTextBody.get() ) + if( getTextBody() ) { - sal_Int32 nTextRotateAngle = static_cast< sal_Int32 >( mpTextBody->getTextProperties().moRotation.get( 0 ) ); + sal_Int32 nTextRotateAngle = static_cast< sal_Int32 >( getTextBody()->getTextProperties().moRotation.get( 0 ) ); mpCustomShapePropertiesPtr->setTextRotateAngle( -nTextRotateAngle / 60000 ); } OSL_TRACE("==cscode== shape name: '%s'", rtl::OUStringToOString(msName, RTL_TEXTENCODING_UTF8 ).getStr()); mpCustomShapePropertiesPtr->pushToPropSet( rFilterBase, xSet, mxShape ); } + else if( getTextBody() ) + getTextBody()->getTextProperties().pushVertSimulation(); // in some cases, we don't have any text body. if( getTextBody() ) |