comparison 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
comparison
equal deleted inserted replaced
771:a964151832a7 776:fe59d97750ba
1471 1471
1472 if (completion >= 100) { 1472 if (completion >= 100) {
1473 1473
1474 //!!! 1474 //!!!
1475 if (wfm || 1475 if (wfm ||
1476 (wfm = dynamic_cast<RangeSummarisableTimeValueModel *> 1476 (model &&
1477 (model->getSourceModel()))) { 1477 (wfm = dynamic_cast<RangeSummarisableTimeValueModel *>
1478 (model->getSourceModel())))) {
1478 completion = wfm->getAlignmentCompletion(); 1479 completion = wfm->getAlignmentCompletion();
1479 // SVDEBUG << "View::checkProgress: Alignment completion = " << completion << endl; 1480 // SVDEBUG << "View::checkProgress: Alignment completion = " << completion << endl;
1480 if (completion < 100) { 1481 if (completion < 100) {
1481 text = tr("Alignment"); 1482 text = tr("Alignment");
1482 } 1483 }