From 928225e46759b1959be81a37f59a6f5897f944b7 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 19 Aug 2021 10:01:31 +0200 Subject: [PATCH] Gerbview, Cairo engine: slightly better handling of negative objects. However, OpenGL engine is much better. --- gerbview/gerbview_painter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gerbview/gerbview_painter.cpp b/gerbview/gerbview_painter.cpp index e0e13bec61..9c3451fa43 100644 --- a/gerbview/gerbview_painter.cpp +++ b/gerbview/gerbview_painter.cpp @@ -258,7 +258,7 @@ void GERBVIEW_PAINTER::draw( /*const*/ GERBER_DRAW_ITEM* aItem, int aLayer ) if( aItem->IsBrightened() ) color = COLOR4D( 0.0, 1.0, 0.0, 0.75 ); - m_gal->SetNegativeDrawMode( isNegative ); + m_gal->SetNegativeDrawMode( isNegative && ! m_gerbviewSettings.IsShowNegativeItems() ); m_gal->SetStrokeColor( color ); m_gal->SetFillColor( color ); m_gal->SetIsFill( isFilled ); @@ -426,6 +426,7 @@ void GERBVIEW_PAINTER::draw( /*const*/ GERBER_DRAW_ITEM* aItem, int aLayer ) wxASSERT_MSG( false, "GERBER_DRAW_ITEM shape is unknown!" ); break; } + m_gal->SetNegativeDrawMode( false ); // Enable for bounding box debugging #if 0