comparison layer/SliceLayer.cpp @ 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 9e1559b08f0d
children 5a10e9d924d4
comparison
equal deleted inserted replaced
1254:b3603483228d 1255:bbdfe9b57857
64 } 64 }
65 65
66 if (m_sliceableModel == sliceable) return; 66 if (m_sliceableModel == sliceable) return;
67 67
68 m_sliceableModel = sliceable; 68 m_sliceableModel = sliceable;
69
70 if (!m_sliceableModel) return;
69 71
70 connectSignals(m_sliceableModel); 72 connectSignals(m_sliceableModel);
71 73
72 m_minbin = 0; 74 m_minbin = 0;
73 m_maxbin = m_sliceableModel->getHeight(); 75 m_maxbin = m_sliceableModel->getHeight();