You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by wa...@apache.org on 2012/09/07 06:45:35 UTC

svn commit: r1381862 - /incubator/ooo/trunk/main/oox/source/drawingml/textparagraphpropertiescontext.cxx

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 <ji...@gmail.com>
   Suggested by: Wang Zhe <ki...@gmai.com>
   Found by: Wang Lifeng <ph...@gmail.com>
   Review by: Wang Zhe <ki...@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 );
 	}
 }