diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-20 11:48:36 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-20 14:37:03 -0500 |
commit | 41bee5b83102760a6da7eaca3b770e4c4e310d4d (patch) | |
tree | 24e4e88b037ca5c45b603741c7f9bcc2fa1fdbf3 /drawinglayer | |
parent | 30f97564f86ff2fff3e682a14191db0d841df0cf (diff) |
Do the same when the pixel thickness is zero.
Change-Id: Icfbb295abb19cf58477f4f14f4a7294a540151c2
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclpixelprocessor2d.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx index 68abfa418a80..ce226875adb4 100644 --- a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx @@ -378,6 +378,13 @@ namespace drawinglayer { // Horizontal line. + if (basegfx::fTools::equalZero(nThick)) + { + // Dash line segment too small to draw. Substitute it with a solid line. + drawHairLine(mpOutputDevice, fX1, fY1, fX2, fY1, aLineColor); + return true; + } + // Create a dash unit polygon set. basegfx::B2DPolyPolygon aDashes; std::vector<double>::const_iterator it = aPattern.begin(), itEnd = aPattern.end(); @@ -438,6 +445,13 @@ namespace drawinglayer { // Vertical line. + if (basegfx::fTools::equalZero(nThick)) + { + // Dash line segment too small to draw. Substitute it with a solid line. + drawHairLine(mpOutputDevice, fX1, fY1, fX1, fY2, aLineColor); + return true; + } + // Create a dash unit polygon set. basegfx::B2DPolyPolygon aDashes; std::vector<double>::const_iterator it = aPattern.begin(), itEnd = aPattern.end(); |