Initialize static memory. Only the LLDB compiler does this for you.
Fixes: lp:1838158 * https://bugs.launchpad.net/kicad/+bug/1838158
This commit is contained in:
parent
987642eb8c
commit
ee1be14b62
|
@ -91,9 +91,11 @@ void PCB_EDIT_FRAME::PrepareLayerIndicator()
|
|||
bool change = false;
|
||||
|
||||
static int previous_requested_scale;
|
||||
static COLOR4D previous_active_layer_color, previous_Route_Layer_TOP_color,
|
||||
previous_Route_Layer_BOTTOM_color, previous_via_color,
|
||||
previous_background_color;
|
||||
static COLOR4D previous_active_layer_color = COLOR4D::UNSPECIFIED;
|
||||
static COLOR4D previous_Route_Layer_TOP_color = COLOR4D::UNSPECIFIED;
|
||||
static COLOR4D previous_Route_Layer_BOTTOM_color = COLOR4D::UNSPECIFIED;
|
||||
static COLOR4D previous_via_color = COLOR4D::UNSPECIFIED;
|
||||
static COLOR4D previous_background_color = COLOR4D::UNSPECIFIED;
|
||||
|
||||
int requested_scale;
|
||||
Pgm().CommonSettings()->Read( ICON_SCALE_KEY, &requested_scale, 0 );
|
||||
|
|
Loading…
Reference in New Issue