From ff4829eee6f13eb9c00bd05a512b493af235b1ea Mon Sep 17 00:00:00 2001 From: Christian Jacobsen Date: Mon, 18 Dec 2017 09:33:05 +0100 Subject: [PATCH] Added a validity check in SIM_PLOT_PANEL::IsGridShown() Fixes: lp:1712086 * https://bugs.launchpad.net/kicad/+bug/1712086 --- eeschema/sim/sim_plot_panel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/sim/sim_plot_panel.h b/eeschema/sim/sim_plot_panel.h index 77873d64f5..75b12fb988 100644 --- a/eeschema/sim/sim_plot_panel.h +++ b/eeschema/sim/sim_plot_panel.h @@ -224,6 +224,9 @@ public: bool IsGridShown() const { + if( !m_axis_x || !m_axis_y1 ) + return false; + assert( m_axis_x->GetTicks() == m_axis_y1->GetTicks() ); return !m_axis_x->GetTicks(); }