Commits

Anonymous committed c25bcf0

sw33bf12: #i115437# method <OutputDevice::DrawLine(..)> - correct initialisation of LineColor Pen for fat or dashed lines - patch provided by AW

Comments (0)

Files changed (1)

vcl/source/gdi/outdev.cxx

     const bool bDashUsed(LINE_DASH == aInfo.GetStyle());
     const bool bLineWidthUsed(aInfo.GetWidth() > 1);
 
+    if ( mbInitLineColor )
+        ImplInitLineColor();
+
     if(bDashUsed || bLineWidthUsed)
     {
         basegfx::B2DPolygon aLinePolygon;
     }
 	else
 	{
-		if ( mbInitLineColor )
-			ImplInitLineColor();
-
 		mpGraphics->DrawLine( aStartPt.X(), aStartPt.Y(), aEndPt.X(), aEndPt.Y(), this );
 	}