Browse Source

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)
pull/14/head
Jeff Young 7 years ago
parent
commit
2e0def8670
  1. 3
      cvpcb/cvpcb_mainframe.cpp

3
cvpcb/cvpcb_mainframe.cpp

@ -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…
Cancel
Save