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:
Jeff Young 2019-07-28 12:49:55 -06:00
parent 987642eb8c
commit ee1be14b62
1 changed files with 5 additions and 3 deletions

View File

@ -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 );