diff --git a/gerbview/gerbview_painter.cpp b/gerbview/gerbview_painter.cpp index 4efba900dc..f55953bc8e 100644 --- a/gerbview/gerbview_painter.cpp +++ b/gerbview/gerbview_painter.cpp @@ -483,10 +483,11 @@ void GERBVIEW_PAINTER::drawFlashedShape( GERBER_DRAW_ITEM* aItem, bool aFilled ) { D_CODE* code = aItem->GetDcodeDescr(); - wxASSERT_MSG( code, wxT( "drawFlashedShape: Item has no D_CODE!" ) ); - if( !code ) + { + wxLogDebug( wxT( "drawFlashedShape: Item has no D_CODE" ) ); return; + } m_gal->SetIsFill( aFilled ); m_gal->SetIsStroke( !aFilled );