summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorZhe Wang <wangzcdl@apache.org>2012-09-07 03:45:35 +0000
committerZhe Wang <wangzcdl@apache.org>2012-09-07 03:45:35 +0000
commit4545d293b1cf5009b075cdc82d43916909b77347 (patch)
treed048f2113ed4b6a855aef575b07edd6dfef3cf9d /oox
parentb0e67d12cb84c0b5272905cb8aee37bfce794fb1 (diff)
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>
Notes
Notes: merged as: 1ff3ab9235e32305c820af75b9677334c81d9899
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/textparagraphpropertiescontext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/textparagraphpropertiescontext.cxx b/oox/source/drawingml/textparagraphpropertiescontext.cxx
index 4e84854cfb07..ace88e9d44b6 100644
--- a/oox/source/drawingml/textparagraphpropertiescontext.cxx
+++ b/oox/source/drawingml/textparagraphpropertiescontext.cxx
@@ -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::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 );
}
}