summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorOliver-Rainer Wittmann <od@openoffice.org>2010-11-10 14:04:55 +0100
committerOliver-Rainer Wittmann <od@openoffice.org>2010-11-10 14:04:55 +0100
commit05b9f3f8c98a9d31527a837bae44a908a4f6b2c5 (patch)
tree00272838665ad0bd89aa4dc041418f0a4510f2b1 /vcl
parent5248ca01ee107220bf786f9e0b368206ac1facb4 (diff)
sw33bf12: #i115437# method <OutputDevice::DrawLine(..)> - correct initialisation of LineColor Pen for fat or dashed lines - patch provided by AW
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/outdev.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx
index a011e4ee4a92..847a8d7a299a 100644
--- a/vcl/source/gdi/outdev.cxx
+++ b/vcl/source/gdi/outdev.cxx
@@ -2495,6 +2495,9 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt,
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 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt,
}
else
{
- if ( mbInitLineColor )
- ImplInitLineColor();
-
mpGraphics->DrawLine( aStartPt.X(), aStartPt.Y(), aEndPt.X(), aEndPt.Y(), this );
}