diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-24 23:57:38 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-25 09:08:14 +0100 |
commit | cd8c774030f9a8d3abbaf0eb43a5cdd228e643cf (patch) | |
tree | 0809a34c6e057b9fabaf4f704980c77bba2a781a /xmloff/source | |
parent | 794d71c4e990a24539a8dad3d960169538a4b0d4 (diff) |
Simplify by choosing shape kind in SvXMLElementExport constructor
Change-Id: I6d8e1e3c78675b6096f354cace3ff060801cad9e
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/draw/shapeexport.cxx | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index 9f119acdbb5c..f2f7c1bfe3d3 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -2096,21 +2096,10 @@ void XMLShapeExport::ImpExportEllipseShape( sal_Bool bCreateNewline( (nFeatures & SEF_EXPORT_NO_WS) == 0 ); // #86116#/#92210# - // prepare name (with most used) - enum ::xmloff::token::XMLTokenEnum eName(XML_CIRCLE); - - if(bCircle) - { - // name already set - } - else - { - // set name - eName = XML_ELLIPSE; - } - // write ellipse or circle - SvXMLElementExport aOBJ(mrExport, XML_NAMESPACE_DRAW, eName, bCreateNewline, sal_True); + SvXMLElementExport aOBJ(mrExport, XML_NAMESPACE_DRAW, + bCircle ? XML_CIRCLE : XML_ELLIPSE, + bCreateNewline, sal_True); ImpExportDescription( xShape ); // #i68101# ImpExportEvents( xShape ); |