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:
Jeff Young 2019-05-10 19:59:44 +01:00
parent 86d1592777
commit 717b1d37be
1 changed files with 2 additions and 1 deletions

View File

@ -816,7 +816,8 @@ void CVPCB_MAINFRAME::CreateScreenCmp()
fpframe->Raise(); // Make sure that is visible. fpframe->Raise(); // Make sure that is visible.
Raise(); // .. but still we want the focus. Raise(); // .. but still we want the focus.
focus->SetFocus(); if( focus )
focus->SetFocus();
} }
fpframe->InitDisplay(); fpframe->InitDisplay();