diff options
author | nd101 <Fong@nd.com.cn> | 2019-08-07 14:20:11 +0800 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-08-07 11:05:27 +0200 |
commit | 0b2e052238e87faf5b76fe89ed1e10b20c5a3eaa (patch) | |
tree | e9b0fcf5ea2ba4fa506606303863f81403a8fe88 /svx/source | |
parent | c864d894a90141f6d73ed80c1035909986b17074 (diff) |
tdf#126741 - fix dash dot dot line style display
To make it consistent with MS PowerPoint, make the dash dot dot line
start with a dash instead of a dot
Change-Id: I0491c78001e885c3216841b694745c451303917e
Reviewed-on: https://gerrit.libreoffice.org/77079
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/xoutdev/xattr.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index 9c4727447c3f..108375385848 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -554,18 +554,18 @@ double XDash::CreateDotDashArray(::std::vector< double >& rDotDashArray, double } } - for(a=0;a<GetDots();a++) + for (a = 0; a < GetDashes(); a++) { - rDotDashArray[nIns++] = fSingleDotLen; - fFullDotDashLen += fSingleDotLen; + rDotDashArray[nIns++] = fSingleDashLen; + fFullDotDashLen += fSingleDashLen; rDotDashArray[nIns++] = fDashDotDistance; fFullDotDashLen += fDashDotDistance; } - for(a=0;a<GetDashes();a++) + for(a=0;a<GetDots();a++) { - rDotDashArray[nIns++] = fSingleDashLen; - fFullDotDashLen += fSingleDashLen; + rDotDashArray[nIns++] = fSingleDotLen; + fFullDotDashLen += fSingleDotLen; rDotDashArray[nIns++] = fDashDotDistance; fFullDotDashLen += fDashDotDistance; } |