diff options
author | Zhe Wang <wangzcdl@apache.org> | 2012-09-07 03:45:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-13 21:00:34 +0100 |
commit | 1ff3ab9235e32305c820af75b9677334c81d9899 (patch) | |
tree | b9fda226df32593747f6078fc4c71d8101db1fb3 /oox/source | |
parent | 721255a3c07a513c8ddecd01eba2531d8d612459 (diff) |
Resolves: #i119579# position & direction of bracket 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>(cherry picked from commit 4545d293b1cf5009b075cdc82d43916909b77347)
Change-Id: Ic621ce6107bdc0b83c511f055175ae7b629f1503
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/drawingml/textparagraphpropertiescontext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/textparagraphpropertiescontext.cxx b/oox/source/drawingml/textparagraphpropertiescontext.cxx index d674b8194f14..6b5f29aff42b 100644 --- a/oox/source/drawingml/textparagraphpropertiescontext.cxx +++ b/oox/source/drawingml/textparagraphpropertiescontext.cxx @@ -19,7 +19,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" @@ -122,7 +122,7 @@ TextParagraphPropertiesContext::TextParagraphPropertiesContext( ContextHandler& 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 ); } } |