diff -r d7e46c52a8d3 vcl/source/gdi/outdev.cxx --- a/vcl/source/gdi/outdev.cxx Fri Oct 01 16:29:04 2010 +0200 +++ b/vcl/source/gdi/outdev.cxx Tue Nov 09 15:58:53 2010 +0100 @@ -2495,6 +2495,9 @@ const bool bDashUsed(LINE_DASH == aInfo.GetStyle()); const bool bLineWidthUsed(aInfo.GetWidth() > 1); + if ( mbInitLineColor ) + ImplInitLineColor(); + if(bDashUsed || bLineWidthUsed) { basegfx::B2DPolygon aLinePolygon; @@ -2505,9 +2508,6 @@ } else { - if ( mbInitLineColor ) - ImplInitLineColor(); - mpGraphics->DrawLine( aStartPt.X(), aStartPt.Y(), aEndPt.X(), aEndPt.Y(), this ); }