diff view/View.cpp @ 328:b6df8b44b98d

* Fix crash
author Chris Cannam
date Sun, 11 Nov 2007 21:47:19 +0000
parents 4f4f38a11cd2
children e74b56f07c73 64e84e5efb76
line wrap: on
line diff
--- a/view/View.cpp	Sun Nov 11 20:31:12 2007 +0000
+++ b/view/View.cpp	Sun Nov 11 21:47:19 2007 +0000
@@ -1355,8 +1355,8 @@
                 RangeSummarisableTimeValueModel *wfm = 
                     dynamic_cast<RangeSummarisableTimeValueModel *>(model);
                 if (wfm ||
-                    dynamic_cast<RangeSummarisableTimeValueModel *>
-                    (model->getSourceModel())) {
+                    (wfm = dynamic_cast<RangeSummarisableTimeValueModel *>
+                     (model->getSourceModel()))) {
                     completion = wfm->getAlignmentCompletion();
                     if (completion < 100) {
                         text = tr("Alignment");