summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2012-06-13 08:20:49 +0000
committerXisco Fauli <anistenis@gmail.com>2013-04-02 07:21:57 +0200
commit95136e701c5f631307d1b72ad8adf6b3df9090fe (patch)
tree58ccd5777e8c4f30949519e75d08723a955aeea7 /filter
parent74700570730f7259a78c031973cbecd98ef777ff (diff)
#i119559# fix vertical text in *ppt export
Patch by: Lei Debin, Wang Zhe Found by: Li Feng Wang Review by: Herbert Duerr
Diffstat (limited to 'filter')
-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 89727c3a98ce..412fb59e42b1 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -24,6 +24,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>
@@ -3093,6 +3094,12 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT
AddOpt(DFF_Prop_gtextAlign,gTextAlign);
}
}
+ 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 );
}