cairo canvas: Line dashing size depends on the line width.

Change-Id: I6a3f563b6effd37b448ec3e8463a87879e0566d4
This commit is contained in:
Jan Holesovsky 2013-11-27 13:11:04 +01:00
parent ec746c830c
commit 843b211820

View file

@ -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;
}