Mercurial > hg > svgui
diff layer/SpectrumLayer.cpp @ 458:bd4db63b085e
* minor stuff
author | Chris Cannam |
---|---|
date | Thu, 04 Dec 2008 17:17:06 +0000 |
parents | 035d62c4cddf |
children | 3b128519773c |
line wrap: on
line diff
--- a/layer/SpectrumLayer.cpp Wed Dec 03 16:25:47 2008 +0000 +++ b/layer/SpectrumLayer.cpp Thu Dec 04 17:17:06 2008 +0000 @@ -49,7 +49,7 @@ { Model *m = const_cast<Model *> (static_cast<const Model *>(m_sliceableModel)); - m->aboutToDelete(); + if (m) m->aboutToDelete(); m_sliceableModel = 0; delete m; }