diff --git a/contourplot.cpp b/contourplot.cpp index 02d5adda..b702b999 100644 --- a/contourplot.cpp +++ b/contourplot.cpp @@ -434,7 +434,8 @@ void ContourPlot::setSurface(wavefront * wf) { return; initPlot(); - m_tools->enablTools(true); + if(m_tools != nullptr) + m_tools->enablTools(true); m_zOffset = 0.; ruler();