summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@collabora.com>2014-03-26 16:14:58 +0530
committerMuthu Subramanian <sumuthu@collabora.com>2014-03-27 13:27:28 +0530
commit45c91575e7b528119124f574cb78e21158fc2652 (patch)
tree71c4e4cd4e75bff018e59790b3b6dea25f88ee99 /oox
parentc17eb67460293fbe72ffa8e80cd10743df493afa (diff)
Cleanup a bit.
Change-Id: I90e15389a76c34d6b7a93cf8b059029795ef8891
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/textbodypropertiescontext.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/oox/source/drawingml/textbodypropertiescontext.cxx b/oox/source/drawingml/textbodypropertiescontext.cxx
index a26c75c9a98d..5370350b56ca 100644
--- a/oox/source/drawingml/textbodypropertiescontext.cxx
+++ b/oox/source/drawingml/textbodypropertiescontext.cxx
@@ -57,11 +57,9 @@ TextBodyPropertiesContext::TextBodyPropertiesContext( ContextHandler2Helper& rPa
}
mrTextBodyProp.mbAnchorCtr = rAttribs.getBool( XML_anchorCtr, false );
- if( rAttribs.hasAttribute( XML_anchorCtr ) ) {
- if( mrTextBodyProp.mbAnchorCtr )
- mrTextBodyProp.maPropertyMap.setProperty( PROP_TextHorizontalAdjust,
- TextHorizontalAdjust_CENTER);
- }
+ if( mrTextBodyProp.mbAnchorCtr )
+ mrTextBodyProp.maPropertyMap.setProperty( PROP_TextHorizontalAdjust, TextHorizontalAdjust_CENTER );
+
// bool bCompatLineSpacing = rAttribs.getBool( XML_compatLnSpc, false );
// bool bForceAA = rAttribs.getBool( XML_forceAA, false );
// bool bFromWordArt = rAttribs.getBool( XML_fromWordArt, false );