# HG changeset patch # User Chris Cannam # Date 1541084501 0 # Node ID d3814e07b8aa5fb5e036c061c93e9ec08ac7a8d0 # Parent 21f21354c834d671fab10c1b7ef607265ef58d9f Debug bits diff -r 21f21354c834 -r d3814e07b8aa data/model/AlignmentModel.cpp --- a/data/model/AlignmentModel.cpp Thu Nov 01 15:01:32 2018 +0000 +++ b/data/model/AlignmentModel.cpp Thu Nov 01 15:01:41 2018 +0000 @@ -101,10 +101,16 @@ { if (!m_pathBegun && m_rawPath) { if (completion) *completion = 0; +#ifdef DEBUG_ALIGNMENT_MODEL + SVDEBUG << "AlignmentModel::isReady: path not begun" << endl; +#endif return false; } if (m_pathComplete) { if (completion) *completion = 100; +#ifdef DEBUG_ALIGNMENT_MODEL + SVDEBUG << "AlignmentModel::isReady: path complete" << endl; +#endif return true; } if (!m_rawPath) { @@ -112,6 +118,9 @@ // m_pathComplete true above) or else no alignment has been // set at all yet (this case) if (completion) *completion = 0; +#ifdef DEBUG_ALIGNMENT_MODEL + SVDEBUG << "AlignmentModel::isReady: no raw path" << endl; +#endif return false; } return m_rawPath->isReady(completion); diff -r 21f21354c834 -r d3814e07b8aa data/model/Model.cpp --- a/data/model/Model.cpp Thu Nov 01 15:01:32 2018 +0000 +++ b/data/model/Model.cpp Thu Nov 01 15:01:41 2018 +0000 @@ -161,14 +161,15 @@ int Model::getAlignmentCompletion() const { -// SVDEBUG << "Model::getAlignmentCompletion" << endl; +// SVDEBUG << "Model::getAlignmentCompletion: m_alignment = " +// << m_alignment << endl; if (!m_alignment) { if (m_sourceModel) return m_sourceModel->getAlignmentCompletion(); else return 100; } int completion = 0; (void)m_alignment->isReady(&completion); -// cerr << " -> " << completion << endl; +// SVDEBUG << " -> " << completion << endl; return completion; }