From ff0909c90c35c1131992ba8b71e17ec22cef880f Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sat, 6 Oct 2018 15:04:19 +0200 Subject: [PATCH] Fully initialize PCB_RENDER_SETTINGS::m_sketchMode --- pcbnew/pcb_painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index b98a0c08d2..a6886543c4 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -59,7 +59,7 @@ PCB_RENDER_SETTINGS::PCB_RENDER_SETTINGS() m_selectionCandidateColor = COLOR4D( 0.0, 1.0, 0.0, 0.75 ); // By default everything should be displayed as filled - for( unsigned int i = 0; i < PCB_LAYER_ID_COUNT; ++i ) + for( unsigned int i = 0; i < DIM( m_sketchMode ); ++i ) { m_sketchMode[i] = false; }