diff options
Diffstat (limited to 'writerfilter/source/rtftok/rtfdispatchdestination.cxx')
-rw-r--r-- | writerfilter/source/rtftok/rtfdispatchdestination.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/writerfilter/source/rtftok/rtfdispatchdestination.cxx b/writerfilter/source/rtftok/rtfdispatchdestination.cxx index f844de1bf94c..0f795c7d50e0 100644 --- a/writerfilter/source/rtftok/rtfdispatchdestination.cxx +++ b/writerfilter/source/rtftok/rtfdispatchdestination.cxx @@ -11,7 +11,7 @@ #include <com/sun/star/document/DocumentProperties.hpp> #include <com/sun/star/drawing/XDrawPageSupplier.hpp> -#include <com/sun/star/text/TextContentAnchorType.hpp> +#include <com/sun/star/text/VertOrientation.hpp> #include <filter/msfilter/escherex.hxx> #include <rtl/character.hxx> @@ -598,11 +598,10 @@ RTFError RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword) if (xDrawSupplier.is()) { uno::Reference<drawing::XShape> xShape(xGroupShape, uno::UNO_QUERY); - // set AnchorType before inserting + // set default VertOrient before inserting uno::Reference<beans::XPropertySet>(xShape, uno::UNO_QUERY) - ->setPropertyValue( - "AnchorType", - uno::makeAny(text::TextContentAnchorType_AT_CHARACTER)); + ->setPropertyValue("VertOrient", + uno::makeAny(text::VertOrientation::NONE)); xDrawSupplier->getDrawPage()->add(xShape); } m_pSdrImport->pushParent(xGroupShape); |