Mercurial > hg > svcore
comparison data/model/AlignmentModel.cpp @ 1760:9945ad04c174 by-id
Fix typo that inverted sense of test
author | Chris Cannam |
---|---|
date | Mon, 08 Jul 2019 10:08:08 +0100 |
parents | 6d09d68165a4 |
children | f19711ab7074 |
comparison
equal
deleted
inserted
replaced
1759:b679bae1627b | 1760:9945ad04c174 |
---|---|
243 if (!alignedModel) return; | 243 if (!alignedModel) return; |
244 | 244 |
245 auto pathSourceModel = | 245 auto pathSourceModel = |
246 ModelById::getAs<SparseTimeValueModel>(m_pathSource); | 246 ModelById::getAs<SparseTimeValueModel>(m_pathSource); |
247 if (!m_path) { | 247 if (!m_path) { |
248 if (pathSourceModel) { | 248 if (!pathSourceModel) { |
249 cerr << "ERROR: AlignmentModel::constructPath: " | 249 cerr << "ERROR: AlignmentModel::constructPath: " |
250 << "No raw path available" << endl; | 250 << "No raw path available (id is " << m_pathSource |
251 << ")" << endl; | |
251 return; | 252 return; |
252 } | 253 } |
253 m_path.reset(new Path | 254 m_path.reset(new Path |
254 (pathSourceModel->getSampleRate(), | 255 (pathSourceModel->getSampleRate(), |
255 pathSourceModel->getResolution())); | 256 pathSourceModel->getResolution())); |