svx/source/xoutdev/xtabdash.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit b8c5236b444a9fbb1d419b95faf2ab2a71913efe Author: László Németh <nem...@numbertext.org> AuthorDate: Wed Apr 21 22:34:52 2021 +0200 Commit: László Németh <nem...@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 <nem...@numbertext.org> Reviewed-by: László Németh <nem...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits