Blob Blame History Raw
From 35e44c9d756f3815b00be9aabbb19bd36c430b37 Mon Sep 17 00:00:00 2001
From: Jan Holesovsky <kendy@collabora.com>
Date: Wed, 27 Nov 2013 13:11:04 +0100
Subject: [PATCH 007/109] cairo canvas: Line dashing size depends on the line
 width.

Change-Id: I6a3f563b6effd37b448ec3e8463a87879e0566d4
Reviewed-on: https://gerrit.libreoffice.org/6833
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
---
 canvas/source/cairo/cairo_canvashelper.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index ca75d35..5953495 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -1230,7 +1230,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;
             }
-- 
1.8.4.2