Defensive coding that will possibly fix a crash when scrolling through footprints.
Fixes: lp:1828289
* https://bugs.launchpad.net/kicad/+bug/1828289
(cherry picked from commit 717b1d37be
)
This commit is contained in:
parent
8c3d16a395
commit
2e0def8670
|
@ -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