diff options
author | Dinesh Patil <dinesh.patil@synerzip.com> | 2014-05-29 15:26:46 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-06 10:23:54 +0200 |
commit | 80ef7a645a8118976a4366135faa41bceda423be (patch) | |
tree | 6de963b2978155daa5f40c5a39b83c64c8670b87 /oox/source | |
parent | 26259e0cca3bc4d8f45337b0cafea2eed8eb32f9 (diff) |
fdo#79256 Line Style with Long Dashes and dots is getting corrupt after RT
Description:
In RT file the dash length (d) is going out of range,
as after RT the dashing scheme changes to custom dash
which was causing the corruption. Changed code at export,
which will divide the DashLen, DotLen and Distance by
base line width.
Reviewed on:
https://gerrit.libreoffice.org/9559
Change-Id: I0e644b5a2b692a9e717026a14d1f0058199f53b1
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/export/drawingml.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 6703669e3c95..42d007a7aa5f 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -628,6 +628,11 @@ void DrawingML::WriteOutline( Reference< XPropertySet > rXPropSet ) // 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 ); + + aLineDash.DotLen = aLineDash.DotLen / nLineWidth; + aLineDash.DashLen = aLineDash.DashLen / nLineWidth; + aLineDash.Distance = aLineDash.Distance / nLineWidth; + int i; for( i = 0; i < aLineDash.Dots; i ++ ) mpFS->singleElementNS( XML_a, XML_ds, |