summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-08 13:01:53 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-08 14:35:11 +0100
commitb1fbb1513a4d183e3194965c1a60feca56dc90bb (patch)
treed3194969f8d11423ca168ebb24d318885ec20be0 /oox
parent1ca73256f99fcc60330463eb7753c20df389e551 (diff)
fix OOXML validation error, related fdo#42698
Missing percentage sign in type. The values of XML_d and XML_sp seem insane. Change-Id: If6762ed70d3536c0eeea3ee687991dad60f5e71e
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index cf25f2a47661..5f869eef95eb 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -620,17 +620,18 @@ void DrawingML::WriteOutline( Reference< XPropertySet > rXPropSet )
if( bDashSet && aStyleLineStyle != drawing::LineStyle_DASH ) {
// line style is a dash and it was not set by the shape style
+ // TODO: the XML_d and XML_sp values seem insane
mpFS->startElementNS( XML_a, XML_custDash, FSEND );
int i;
for( i = 0; i < aLineDash.Dots; i ++ )
mpFS->singleElementNS( XML_a, XML_ds,
- XML_d, aLineDash.DotLen ? I64S( aLineDash.DotLen*1000 ) : "100000",
- XML_sp, I64S( aLineDash.Distance*1000 ),
+ XML_d, aLineDash.DotLen ? writePercentage( aLineDash.DotLen*1000 ) : "100000%",
+ XML_sp, writePercentage( aLineDash.Distance*1000 ),
FSEND );
for( i = 0; i < aLineDash.Dashes; i ++ )
mpFS->singleElementNS( XML_a, XML_ds,
- XML_d, aLineDash.DashLen ? I64S( aLineDash.DashLen*1000 ) : "100000",
- XML_sp, I64S( aLineDash.Distance*1000 ),
+ XML_d, aLineDash.DashLen ? writePercentage( aLineDash.DashLen*1000 ) : "100000%",
+ XML_sp, writePercentage( aLineDash.Distance*1000 ),
FSEND );
mpFS->endElementNS( XML_a, XML_custDash );
}