Author: hdu
Date: Wed Jun 13 09:20:49 2012
New Revision: 1349700

URL: http://svn.apache.org/viewvc?rev=1349700&view=rev
Log:
#i119559# fix vertical text in *ppt export

Patch by: Lei Debin, Wang Zhe
Found by: Li Feng Wang
Review by: Herbert Duerr

Modified:
    incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx

Modified: incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx
URL: 
http://svn.apache.org/viewvc/incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx?rev=1349700&r1=1349699&r2=1349700&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx Wed Jun 13 
09:20:49 2012
@@ -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::CreateCust
                                                                }
                                                        }
                                                }
+                                               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 );
                                        }


Reply via email to