summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2021-04-21 22:34:52 +0200
committerLászló Németh <nemeth@numbertext.org>2021-05-05 13:47:04 +0200
commitb8c5236b444a9fbb1d419b95faf2ab2a71913efe (patch)
treee278fed1d7498a2cd9d3c441de94c19b5bc85568
parentb9b2c6a98fec798fc0ec76ec3cd407724f19dcac (diff)
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@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
-rw-r--r--svx/source/xoutdev/xtabdash.cxx3
1 files changed, 3 insertions, 0 deletions
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;