diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-15 16:37:03 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-17 11:33:15 -0500 |
commit | 5489b897bf9eb96642f13610ca691e9c5545cda4 (patch) | |
tree | 7600c7c6b82f1fbf491690b1bc0fd12fca180164 /drawinglayer | |
parent | 0a8ddb61b1178a7ab48de7aa3383cea4c4c1774c (diff) |
Distance value has been already scaled; no need to apply scaling twice.
Change-Id: Id3ffc253dbd50fd23e924b4e1a349ab5c2c8518b
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/borderlineprimitive2d.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx index 049e39063a64..853ab7cc6d71 100644 --- a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx @@ -153,6 +153,9 @@ namespace drawinglayer nWidth = lcl_GetCorrectedWidth(nWidth, getStart(), getEnd(), rViewInformation); + // distance is already scaled. + double fGap = mfDistance*12.0; + if (bIsHairline) { // create hairline primitive @@ -160,7 +163,6 @@ namespace drawinglayer aPolygon.append( getEnd() ); basegfx::B2DPolygon aPolygon2 = aPolygon; - double fGap = (mfDistance/mfLeftWidth) * mfPatternScale * 10.0; moveLine(aPolygon2, fGap, aVector); xRetval.realloc(2); @@ -190,7 +192,6 @@ namespace drawinglayer aPolygon = aClipped.getB2DPolygon(0); basegfx::B2DPolygon aPolygon2 = aPolygon; - double fGap = (mfDistance/mfLeftWidth + aVector.getLength()) * mfPatternScale * 10.0; moveLine(aPolygon2, fGap, aVector); xRetval.realloc(2); |