diff view/View.cpp @ 776:fe59d97750ba

Fix crash on checking progress of slice layer
author Chris Cannam
date Thu, 22 May 2014 15:23:24 +0100
parents 87512dacc4bd
children 3a52b458fcd5 4c8ca536b54f
line wrap: on
line diff
--- 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<RangeSummarisableTimeValueModel *>
-                     (model->getSourceModel()))) {
+                    (model && 
+                     (wfm = dynamic_cast<RangeSummarisableTimeValueModel *>
+                      (model->getSourceModel())))) {
                     completion = wfm->getAlignmentCompletion();
 //                    SVDEBUG << "View::checkProgress: Alignment completion = " << completion << endl;
                     if (completion < 100) {