summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/docxattributeoutput.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/ww8/docxattributeoutput.cxx')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 196970c2b4da..e7468c1c8d6d 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -5422,11 +5422,10 @@ void DocxAttributeOutput::WriteOLE( SwOLENode& rNode, const Size& rSize, const S
m_pSerializer->startElementNS(XML_w, XML_object);
}
- OStringBuffer sShapeStyle, sShapeId;
- sShapeStyle.append( "width:" ).append( double( rSize.Width() ) / 20 )
- .append( "pt;height:" ).append( double( rSize.Height() ) / 20 )
- .append( "pt" ); //from VMLExport::AddRectangleDimensions(), it does: value/20
- sShapeId.append( "ole_" ).append( sId );
+ OString sShapeStyle = "width:" + OString::number( double( rSize.Width() ) / 20 ) +
+ "pt;height:" + OString::number( double( rSize.Height() ) / 20 ) +
+ "pt"; //from VMLExport::AddRectangleDimensions(), it does: value/20
+ OString sShapeId = "ole_" + sId;
// shape definition
m_pSerializer->startElementNS( XML_v, XML_shape,