diff options
Diffstat (limited to 'oox/source/drawingml/diagram/layoutnodecontext.cxx')
-rw-r--r-- | oox/source/drawingml/diagram/layoutnodecontext.cxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/oox/source/drawingml/diagram/layoutnodecontext.cxx b/oox/source/drawingml/diagram/layoutnodecontext.cxx index 2cfeec2e8db6..ff508a24fcae 100644 --- a/oox/source/drawingml/diagram/layoutnodecontext.cxx +++ b/oox/source/drawingml/diagram/layoutnodecontext.cxx @@ -67,10 +67,18 @@ public: { case DGM_TOKEN( param ): { - const sal_Int32 nValTok = rAttribs.getToken( XML_val, 0 ); - mpNode->addParam( - rAttribs.getToken( XML_type, 0 ), - nValTok>0 ? nValTok : rAttribs.getInteger( XML_val, 0 ) ); + sal_Int32 nType = rAttribs.getToken(XML_type, 0); + switch (nType) + { + case XML_ar: + mpNode->setAspectRatio(rAttribs.getDouble(XML_val, 0)); + break; + default: + const sal_Int32 nValTok = rAttribs.getToken(XML_val, 0); + mpNode->addParam(nType, nValTok > 0 ? nValTok + : rAttribs.getInteger(XML_val, 0)); + break; + } break; } default: |