# HG changeset patch # User Chris Cannam # Date 1400768604 -3600 # Node ID fe59d97750ba18cccb24871da50c4973fdbe212a # Parent a964151832a766829dff00b709262910ebac4fcc Fix crash on checking progress of slice layer diff -r a964151832a7 -r fe59d97750ba view/View.cpp --- a/view/View.cpp Wed May 14 09:54:34 2014 +0100 +++ b/view/View.cpp Thu May 22 15:23:24 2014 +0100 @@ -1473,8 +1473,9 @@ //!!! if (wfm || - (wfm = dynamic_cast - (model->getSourceModel()))) { + (model && + (wfm = dynamic_cast + (model->getSourceModel())))) { completion = wfm->getAlignmentCompletion(); // SVDEBUG << "View::checkProgress: Alignment completion = " << completion << endl; if (completion < 100) {