Defensive coding that will possibly fix a crash when scrolling through footprints.
Fixes: lp:1828289 * https://bugs.launchpad.net/kicad/+bug/1828289
This commit is contained in:
parent
86d1592777
commit
717b1d37be
|
@ -816,7 +816,8 @@ void CVPCB_MAINFRAME::CreateScreenCmp()
|
|||
fpframe->Raise(); // Make sure that is visible.
|
||||
Raise(); // .. but still we want the focus.
|
||||
|
||||
focus->SetFocus();
|
||||
if( focus )
|
||||
focus->SetFocus();
|
||||
}
|
||||
|
||||
fpframe->InitDisplay();
|
||||
|
|
Loading…
Reference in New Issue