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:11:59 +0100
commit843b211820075fceefe94a3bd73612ae7539361b (patch)
treec93f73d7bd4ffe3974fd56c83253f9d54b3918c7 /canvas
parentec746c830c4ce86e446b929a88a3376a51871314 (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;
}