[Libreoffice-commits] core.git: svx/source

László Németh (via logerrit) logerrit at kemper.freedesktop.org
Wed May 5 11:47:45 UTC 2021


 svx/source/xoutdev/xtabdash.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b8c5236b444a9fbb1d419b95faf2ab2a71913efe
Author:     László Németh <nemeth at numbertext.org>
AuthorDate: Wed Apr 21 22:34:52 2021 +0200
Commit:     László Németh <nemeth at numbertext.org>
CommitDate: Wed May 5 13:47:04 2021 +0200

    tdf#141934 svx dialog: fix missing dots in line style preview
    
    Line styles with dot-like dots (e.g the new
    "rounded" preset line styles) got bad preview
    with missing dots in the line style popup menus.
    
    Follow-up to commit b9b2c6a98fec798fc0ec76ec3cd407724f19dcac
    "tdf#141933 add preset dash styles with round cap".
    
    Change-Id: I0d18feb2772a47588b41dea2138cdcb14332c8b4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114460
    Tested-by: László Németh <nemeth at numbertext.org>
    Reviewed-by: László Németh <nemeth at numbertext.org>

diff --git a/svx/source/xoutdev/xtabdash.cxx b/svx/source/xoutdev/xtabdash.cxx
index 787a8e9e1b1d..4d0cac97b612 100644
--- a/svx/source/xoutdev/xtabdash.cxx
+++ b/svx/source/xoutdev/xtabdash.cxx
@@ -115,6 +115,9 @@ BitmapEx XDashList::ImpCreateBitmapForXDash(const XDash* pDash)
             for(double & a : aDotDashArray)
             {
                 a *= fScaleValue;
+                // ~zero length dash is a dot-like dot (with line width size round cap), so show it
+                if (a < 0.1)
+                    a += 1.0;
             }
 
             fFullDotDashLen *= fScaleValue;


More information about the Libreoffice-commits mailing list