From 4958c40d7c3b82202e7cdc2350626fa2c41a19c2 Mon Sep 17 00:00:00 2001 From: Julien Staub Date: Sun, 19 Oct 2025 09:02:02 +0200 Subject: [PATCH] fix part of crash --- contourplot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();