Fix nullptr access on 2nd launch of eeschema.

This commit is contained in:
Jeff Young 2018-08-10 21:08:20 +01:00
parent 43e99e6df0
commit 68bd1abf78
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ void EDA_DRAW_FRAME::Zoom_Automatique( bool aWarpPointer )
{
BASE_SCREEN* screen = GetScreen();
if( !screen )
return;
// Set the best zoom and get center point.
// BestZoom() can compute an illegal zoom if the client window size