changeset 1760:9945ad04c174 by-id

Fix typo that inverted sense of test
author Chris Cannam
date Mon, 08 Jul 2019 10:08:08 +0100 (2019-07-08)
parents b679bae1627b
children ee7fd2c01d87
files data/model/AlignmentModel.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/AlignmentModel.cpp	Mon Jul 08 10:07:55 2019 +0100
+++ b/data/model/AlignmentModel.cpp	Mon Jul 08 10:08:08 2019 +0100
@@ -245,9 +245,10 @@
     auto pathSourceModel =
         ModelById::getAs<SparseTimeValueModel>(m_pathSource);
     if (!m_path) {
-        if (pathSourceModel) {
+        if (!pathSourceModel) {
             cerr << "ERROR: AlignmentModel::constructPath: "
-                      << "No raw path available" << endl;
+                 << "No raw path available (id is " << m_pathSource
+                 << ")" << endl;
             return;
         }
         m_path.reset(new Path