Kaydet (Commit) 8a5382fe authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use nRadius value at least to decide between "rect" and "roundRect" presets

(found by clang-analyzer-deadcode.DeadStores)

Change-Id: I27ff1222295a151a7616ed380439b87d27866899
üst 949628c4
......@@ -882,6 +882,8 @@ ShapeExport& ShapeExport::WriteRectangleShape( Reference< XShape > xShape )
{
nRadius = MapSize( awt::Size( nRadius, 0 ) ).Width;
}
//TODO: use nRadius value more precisely than just deciding whether to use
// "rect" or "roundRect" preset shape below
// non visual shape properties
if (GetDocumentType() == DOCUMENT_DOCX)
......@@ -898,7 +900,7 @@ ShapeExport& ShapeExport::WriteRectangleShape( Reference< XShape > xShape )
// visual shape properties
pFS->startElementNS( mnXmlNamespace, XML_spPr, FSEND );
WriteShapeTransformation( xShape, XML_a, false, false);
WritePresetShape( "rect" );
WritePresetShape( nRadius == 0 ? "rect" : "roundRect" );
Reference< XPropertySet > xProps( xShape, UNO_QUERY );
if( xProps.is() )
{
......
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