From 68bd1abf784869c63e64c552441a969c1c8f0459 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 10 Aug 2018 21:08:20 +0100 Subject: [PATCH] Fix nullptr access on 2nd launch of eeschema. --- common/zoom.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/zoom.cpp b/common/zoom.cpp index 168893f1c8..1b814bd804 100644 --- a/common/zoom.cpp +++ b/common/zoom.cpp @@ -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