Kaydet (Commit) cd8c7740 authored tarafından Matteo Casalin's avatar Matteo Casalin

Simplify by choosing shape kind in SvXMLElementExport constructor

Change-Id: I6d8e1e3c78675b6096f354cace3ff060801cad9e
üst 794d71c4
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment