diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-04-04 01:58:07 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-04-04 03:09:48 +0200 |
commit | 2c91cb08d65cd35fa8ef6eaca3677aa82fb58cbe (patch) | |
tree | 62fc0d5e2b33e3a66828cb0cb0efad2c20dbaa7d /drawinglayer | |
parent | 71da75abda60172ee9b8f42c1bf5de2f48a731b9 (diff) |
better drawing support for borders of different width, fdo#33634
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx b/drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx index 1449e2b630c7..6ca9643c60ab 100644 --- a/drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx +++ b/drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx @@ -85,17 +85,17 @@ namespace drawinglayer /// local helpers double getCorrectedLeftWidth() const { - return basegfx::fTools::equal(1.0, mfLeftWidth) ? 0.0 : mfLeftWidth; + return mfLeftWidth <= 0.1 ? 0.0 : mfLeftWidth; } double getCorrectedDistance() const { - return basegfx::fTools::equal(1.0, mfDistance) ? 0.0 : mfDistance; + return mfDistance <= 0.1 ? 0.0 : mfDistance; } double getCorrectedRightWidth() const { - return basegfx::fTools::equal(1.0, mfRightWidth) ? 0.0 : mfRightWidth; + return mfRightWidth <= 0.1 ? 0.0 : mfRightWidth; } double getWidth() const @@ -105,12 +105,12 @@ namespace drawinglayer bool leftIsHairline() const { - return basegfx::fTools::equal(1.0, mfLeftWidth); + return 0 < mfLeftWidth && mfLeftWidth <= 0.1; } bool rightIsHairline() const { - return basegfx::fTools::equal(1.0, mfRightWidth); + return 0 < mfRightWidth && mfRightWidth <= 0.1; } bool isSolidLine() const |