diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-15 16:24:12 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-17 11:33:15 -0500 |
commit | 0a8ddb61b1178a7ab48de7aa3383cea4c4c1774c (patch) | |
tree | fa53f6ddeb4ca48cf626e6e7e9c7f05909f11e3d /drawinglayer | |
parent | 5250a9ae8eaa8eac2595a073153ee1140e64ed10 (diff) |
Apply dashing without consulting current map unit.
Using scaling is sufficient.
Change-Id: If976bec3940772432d814a77681170d7c99306d2
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 fc993997f100..049e39063a64 100644 --- a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx @@ -241,8 +241,9 @@ namespace drawinglayer aPolygon.append( aTmpStart ); aPolygon.append( aTmpEnd ); - basegfx::B2DPolyPolygon aDashed = svtools::ApplyLineDashing( - aPolygon, getStyle(), MAP_PIXEL, mfPatternScale*10.0); + basegfx::B2DPolyPolygon aDashed = + svtools::ApplyLineDashing(aPolygon, getStyle(), mfPatternScale*10.0); + for (sal_uInt32 i = 0; i < aDashed.count(); i++ ) { basegfx::B2DPolygon aDash = aDashed.getB2DPolygon( i ); |