Kaydet (Commit) 843b2118 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

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

Change-Id: I6a3f563b6effd37b448ec3e8463a87879e0566d4
üst ec746c83
...@@ -1229,7 +1229,7 @@ namespace cairocanvas ...@@ -1229,7 +1229,7 @@ namespace cairocanvas
{ {
double* pDashArray = new double[ strokeAttributes.DashArray.getLength() ]; double* pDashArray = new double[ strokeAttributes.DashArray.getLength() ];
for( sal_Int32 i=0; i<strokeAttributes.DashArray.getLength(); i++ ) 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 ); cairo_set_dash( mpCairo.get(), pDashArray, strokeAttributes.DashArray.getLength(), 0 );
delete[] pDashArray; delete[] pDashArray;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment