diff options
author | Radek Doulik <rodo@novell.com> | 2010-09-24 09:01:46 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2010-09-24 09:01:46 +0200 |
commit | 84ab9817a6d610bd78f3a22a744cbe808fe8778b (patch) | |
tree | 37060ba9f24cd98f383a14797250c707342ebc56 | |
parent | 322adf80e6d82f92b55bca1ff77b28072d904ec9 (diff) |
Fix text paragraph autofit pptx import
Notes
split repo tag: filters_OOO_BUILD_3_2_99_0_PRE
-rw-r--r-- | oox/source/drawingml/textbodypropertiescontext.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/drawingml/textbodypropertiescontext.cxx b/oox/source/drawingml/textbodypropertiescontext.cxx index 668266f2f679..4a54386fca60 100644 --- a/oox/source/drawingml/textbodypropertiescontext.cxx +++ b/oox/source/drawingml/textbodypropertiescontext.cxx @@ -30,8 +30,9 @@ #include <com/sun/star/drawing/TextHorizontalAdjust.hpp> #include <com/sun/star/text/ControlCharacter.hpp> #include <com/sun/star/text/WritingMode.hpp> -#include <com/sun/star/drawing/TextVerticalAdjust.hpp> +#include <com/sun/star/drawing/TextFitToSizeType.hpp> #include <com/sun/star/drawing/TextHorizontalAdjust.hpp> +#include <com/sun/star/drawing/TextVerticalAdjust.hpp> #include "oox/drawingml/textbodyproperties.hxx" #include "oox/drawingml/drawingmltypes.hxx" #include "oox/helper/attributelist.hxx" @@ -165,7 +166,7 @@ Reference< XFastContextHandler > TextBodyPropertiesContext::createFastChildConte mrTextBodyProp.maPropertyMap[ PROP_TextAutoGrowHeight ] <<= false; // CT_TextNoAutofit break; case NMSP_DRAWINGML|XML_normAutofit: // CT_TextNormalAutofit - mrTextBodyProp.maPropertyMap[ PROP_TextFitToSize ] <<= true; + mrTextBodyProp.maPropertyMap[ PROP_TextFitToSize ] <<= TextFitToSizeType_AUTOFIT; mrTextBodyProp.maPropertyMap[ PROP_TextAutoGrowHeight ] <<= false; break; case NMSP_DRAWINGML|XML_spAutoFit: |