diff options
author | Gülşah Köse <gulsah.kose@collabora.com> | 2020-11-30 13:29:19 +0300 |
---|---|---|
committer | Gülşah Köse <gulsah.kose@collabora.com> | 2020-12-02 14:06:46 +0100 |
commit | 5d80f679e1891f98ef964efa1166c90d001c5806 (patch) | |
tree | 9fa917fd7a31fe6fac6d5d42d1c3c17e7e1bcdc2 /oox/source | |
parent | d350af4e0cf697e2f8ac97ffbf12243e72e1b89a (diff) |
tdf#136957 Use bigger dots for better handling in presentation mode.
3 pt bigger dots are used. Human eye can't catch this
change so we will see same dots in edit mode and presentation mode.
Change-Id: I4a56406f4eb7a6832075a09a4d2f092bd689e9cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106855
Tested-by: Jenkins
Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/drawingml/lineproperties.cxx | 4 | ||||
-rw-r--r-- | oox/source/export/drawingml.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/oox/source/drawingml/lineproperties.cxx b/oox/source/drawingml/lineproperties.cxx index 451da4c6aa26..87c502f96f6b 100644 --- a/oox/source/drawingml/lineproperties.cxx +++ b/oox/source/drawingml/lineproperties.cxx @@ -470,9 +470,9 @@ void LineProperties::pushToPropMap( ShapePropertyMap& rPropMap, // Cannot use -100 because that results in 0 length in some cases and // LibreOffice interprets 0 length as 100%. if (aLineDash.DotLen >= 100 || aLineDash.DashLen >= 100) - aLineDash.Distance += 99; + aLineDash.Distance += 96; if (aLineDash.DotLen >= 100) - aLineDash.DotLen -= 99; + aLineDash.DotLen -= 96; if (aLineDash.DashLen >= 100) aLineDash.DashLen -= 99; } diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index eca53a92d5a8..f309e1541409 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -966,8 +966,8 @@ void DrawingML::WriteOutline( const Reference<XPropertySet>& rXPropSet, Referenc sal_uInt32 nDistance = aLineDash.Distance; if (aLineCap != LineCap_BUTT && nDistance >= 99) { - nDistance -= 99; - nDotLen += 99; + nDistance -= 96; + nDotLen += 96; if (nDashLen > 0) nDashLen += 99; } |