summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-11-27 13:11:04 +0100
committerJan Holesovsky <kendy@collabora.com>2013-11-27 13:14:06 +0100
commit9134ff3fa0ce47a5c2e0ded563a0bb8b8fc3206f (patch)
tree3640462fa48c86e8769d72a9560d9eddd5999fe4 /canvas
parentf305861b1be589ff6854be2f72541398b61c637b (diff)
cairo canvas: Line dashing size depends on the line width.
Change-Id: I6a3f563b6effd37b448ec3e8463a87879e0566d4
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_canvashelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index ff2d71ed4064..34886b0049aa 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -1229,7 +1229,7 @@ namespace cairocanvas
{
double* pDashArray = new double[ strokeAttributes.DashArray.getLength() ];
for( sal_Int32 i=0; i<strokeAttributes.DashArray.getLength(); i++ )
- pDashArray[i]=strokeAttributes.DashArray[i];
+ pDashArray[i] = strokeAttributes.DashArray[i] * w;
cairo_set_dash( mpCairo.get(), pDashArray, strokeAttributes.DashArray.getLength(), 0 );
delete[] pDashArray;
}