changeset 776:fe59d97750ba

Fix crash on checking progress of slice layer
author Chris Cannam
date Thu, 22 May 2014 15:23:24 +0100
parents a964151832a7
children 6d95d87f1654
files view/View.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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) {