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 | d2d280d45c90b77a92475f78ee64dd18b09f353a (patch) | |
tree | 61452a1a04e8690e9787289ad89dc131dfbd87dd | |
parent | 3ebc167639c289451acbf6862788bbefa5b24e6e (diff) |
Fix text paragraph autofit pptx importOOO_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 59aab1014..d05f12631 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: |