changeset 328:b6df8b44b98d

* Fix crash
author Chris Cannam
date Sun, 11 Nov 2007 21:47:19 +0000
parents 29fcf125f98b
children bbc9666cb961 d2d2521a6c7e
files view/View.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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");