comparison view/View.cpp @ 328:b6df8b44b98d

* Fix crash
author Chris Cannam
date Sun, 11 Nov 2007 21:47:19 +0000
parents 4f4f38a11cd2
children e74b56f07c73 64e84e5efb76
comparison
equal deleted inserted replaced
327:29fcf125f98b 328:b6df8b44b98d
1353 //!!! 1353 //!!!
1354 Model *model = i->first->getModel(); 1354 Model *model = i->first->getModel();
1355 RangeSummarisableTimeValueModel *wfm = 1355 RangeSummarisableTimeValueModel *wfm =
1356 dynamic_cast<RangeSummarisableTimeValueModel *>(model); 1356 dynamic_cast<RangeSummarisableTimeValueModel *>(model);
1357 if (wfm || 1357 if (wfm ||
1358 dynamic_cast<RangeSummarisableTimeValueModel *> 1358 (wfm = dynamic_cast<RangeSummarisableTimeValueModel *>
1359 (model->getSourceModel())) { 1359 (model->getSourceModel()))) {
1360 completion = wfm->getAlignmentCompletion(); 1360 completion = wfm->getAlignmentCompletion();
1361 if (completion < 100) { 1361 if (completion < 100) {
1362 text = tr("Alignment"); 1362 text = tr("Alignment");
1363 } 1363 }
1364 } 1364 }