From 034d30c04560bcd1d7dcb5b8f864f0c057d2c2db Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 6 Jul 2011 13:01:53 +0200 Subject: [PATCH] vertical test should not be rotated --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index a4c8a508204f..92f79a1ff1b4 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -47,6 +47,7 @@ #include #include #include +#include #define TWIP_TO_MM100(TWIP) ((TWIP) >= 0 ? (((TWIP)*127L+36L)/72L) : (((TWIP)*127L-36L)/72L)) @@ -2481,8 +2482,8 @@ void RTFDocumentImpl::resolveShapeProperties(std::vector< std::pairsecond.toInt32() == 1) { - aAny <<= (long)27000; - xPropertySet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("RotateAngle")), aAny); + aAny <<= text::WritingMode_TB_RL; + xPropertySet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("TextWritingMode")), aAny); } } else if (i->first.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("fLine")))