summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-07 08:31:50 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-07 08:54:47 +0100
commit1ddb7c2c9d10c92371d76c59c69086115b2c4051 (patch)
treebead6150d40b0a3c5624c7b10cee4604e0691c12 /vcl
parent3a74b40f0f862fc099adb93a528d469903031583 (diff)
it makes no sense to use the line color in some cases
Hopefully that helps a little bit with some strange rendering effects. Change-Id: I6b001bf31d745d6d19f91acadee5ceb0e5480025
Diffstat (limited to 'vcl')
-rw-r--r--vcl/opengl/gdiimpl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index fb436a48d419..feb8bdc27e15 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -732,7 +732,8 @@ void OpenGLSalGraphicsImpl::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPol
#ifdef DBG_UTIL
assert( mProgramIsSolidLineColor );
#endif
- UseSolidAA( mnLineColor );
+ bool bUseLineColor = bLine || mnLineColor != SALCOLOR_NONE;
+ UseSolidAA( bUseLineColor ? mnLineColor : mnFillColor );
for( sal_uInt32 i = 0; i < aSimplePolyPolygon.count(); i++ )
{
const basegfx::B2DPolygon& rPolygon( aSimplePolyPolygon.getB2DPolygon( i ) );