incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wangz...@apache.org
Subject svn commit: r1381862 - /incubator/ooo/trunk/main/oox/source/drawingml/textparagraphpropertiescontext.cxx
Date Fri, 07 Sep 2012 04:45:35 GMT
Author: wangzcdl
Date: Fri Sep  7 04:45:35 2012
New Revision: 1381862

URL: http://svn.apache.org/viewvc?rev=1381862&view=rev
Log:
  Fix issue #i119579#: [From Symphony]][BIDI]The position and direction of Right bracket is
incorrect in Arabic locale 
   * subversion/main/oox/source/drawingml/textparagraphpropertiescontext.cxx 
     []WritingMode2 is used to numerous explicit writing directions, so use WritingMode2 to
instead WritingMode. 

   Patch by: Ma Bingbing <jiazema@gmail.com>
   Suggested by: Wang Zhe <kingwisemmx@gmai.com>
   Found by: Wang Lifeng <phoenix.wanglf@gmail.com>
   Review by: Wang Zhe <kingwisemmx@gmai.com>

Modified:
    incubator/ooo/trunk/main/oox/source/drawingml/textparagraphpropertiescontext.cxx

Modified: incubator/ooo/trunk/main/oox/source/drawingml/textparagraphpropertiescontext.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/oox/source/drawingml/textparagraphpropertiescontext.cxx?rev=1381862&r1=1381861&r2=1381862&view=diff
==============================================================================
--- incubator/ooo/trunk/main/oox/source/drawingml/textparagraphpropertiescontext.cxx (original)
+++ incubator/ooo/trunk/main/oox/source/drawingml/textparagraphpropertiescontext.cxx Fri Sep
 7 04:45:35 2012
@@ -23,7 +23,7 @@
 
 #include "oox/drawingml/textparagraphpropertiescontext.hxx"
 
-#include <com/sun/star/text/WritingMode.hpp>
+#include <com/sun/star/text/WritingMode2.hpp>
 #include <com/sun/star/awt/FontDescriptor.hpp>
 
 #include "oox/drawingml/colorchoicecontext.hxx"
@@ -132,7 +132,7 @@ TextParagraphPropertiesContext::TextPara
 	if ( xAttribs->hasAttribute( XML_rtl ) )
 	{
 		bool bRtl = attribs.getBool( XML_rtl, false );
-        rPropertyMap[ PROP_TextWritingMode ] <<= ( bRtl ? WritingMode_RL_TB : WritingMode_LR_TB
);
+		rPropertyMap[ PROP_WritingMode ] <<= ( bRtl ? WritingMode2::RL_TB : WritingMode2::LR_TB
);
 	}
 }
 



Mime
View raw message