summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@suse.com>2012-09-10 18:26:13 +0530
committerMuthu Subramanian <sumuthu@suse.com>2012-09-10 18:33:28 +0530
commit5b75c17f207d2156e17430ef3e31b5784804b9f7 (patch)
tree2e186bcbf88b67d77c422984345a10762c5ed2f3
parent06c3c184dc3f540516c6991e00b3246feaccb256 (diff)
n#778859: Non autofit text are imported as autofit.
Push default values if <bodyPr> exists.
-rw-r--r--oox/source/drawingml/textbodypropertiescontext.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/oox/source/drawingml/textbodypropertiescontext.cxx b/oox/source/drawingml/textbodypropertiescontext.cxx
index 5bae9f00ab1f..e3c0e1be34dd 100644
--- a/oox/source/drawingml/textbodypropertiescontext.cxx
+++ b/oox/source/drawingml/textbodypropertiescontext.cxx
@@ -113,6 +113,10 @@ TextBodyPropertiesContext::TextBodyPropertiesContext( ContextHandler& rParent,
}
mrTextBodyProp.maPropertyMap[ PROP_TextVerticalAdjust ] <<= mrTextBodyProp.meVA;
}
+
+ // Push defaults
+ mrTextBodyProp.maPropertyMap[ PROP_TextAutoGrowHeight ] <<= false;
+ mrTextBodyProp.maPropertyMap[ PROP_TextFitToSize ] <<= drawing::TextFitToSizeType_NONE;
}
// --------------------------------------------------------------------