# HG changeset patch # User Chris Cannam # Date 1488911977 0 # Node ID bbdfe9b57857bc5375445a55069ad32f72bf1aa9 # Parent b3603483228dc6b02f32313132e319b7675ba5c6 Fix crash when changing window size in the spectrum layer diff -r b3603483228d -r bbdfe9b57857 layer/SliceLayer.cpp --- 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;