changeset 1255:bbdfe9b57857

Fix crash when changing window size in the spectrum layer
author Chris Cannam
date Tue, 07 Mar 2017 18:39:37 +0000
parents b3603483228d
children 5a10e9d924d4
files layer/SliceLayer.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/layer/SliceLayer.cpp	Tue Feb 28 16:42:52 2017 +0000
+++ b/layer/SliceLayer.cpp	Tue Mar 07 18:39:37 2017 +0000
@@ -67,6 +67,8 @@
 
     m_sliceableModel = sliceable;
 
+    if (!m_sliceableModel) return;
+
     connectSignals(m_sliceableModel);
 
     m_minbin = 0;