summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2012-06-13 08:20:49 +0000
committerHerbert Dürr <hdu@apache.org>2012-06-13 08:20:49 +0000
commitc6302d8cf8522034ab795e13fa6bece88ab9057c (patch)
treeb6b9d8147781a56426555fa579527cccc28fcc2c
parentd4be83cc0df58f1eb4534f5531a5e3ad8deae343 (diff)
#i119559# fix vertical text in *ppt export
Patch by: Lei Debin, Wang Zhe Found by: Li Feng Wang Review by: Herbert Duerr
Notes
-rw-r--r--filter/source/msfilter/escherex.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index fe2c017029d9..9d9e2581eb7c 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -30,6 +30,7 @@
#include <svx/svdoashp.hxx>
#include <svx/svdoole2.hxx>
#include <svx/svdmodel.hxx>
+#include <editeng/outlobj.hxx>
#include <vcl/gradient.hxx>
#include <vcl/graph.hxx>
#include <vcl/cvtgrf.hxx>
@@ -3113,6 +3114,12 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT
}
}
}
+ if((nTextPathFlags & 0x4000) != 0) //Is Font work
+ {
+ OutlinerParaObject* pOutlinerParaObject = pCustoShape->GetOutlinerParaObject();
+ if ( pOutlinerParaObject && pOutlinerParaObject->IsVertical() )
+ nTextPathFlags |= 0x2000;
+ }
if ( nTextPathFlags != nTextPathFlagsOrg )
AddOpt( DFF_Prop_gtextFStrikethrough, nTextPathFlags );
}