Mercurial > hg > svcore
diff data/model/Model.cpp @ 1696:187c76c40c6f single-point
Ensure a self-alignment is always reported as complete, since there is nothing to calculate
author | Chris Cannam |
---|---|
date | Wed, 01 May 2019 11:45:28 +0100 |
parents | f97d64b8674f |
children | 601851995f4b |
line wrap: on
line diff
--- a/data/model/Model.cpp Thu Apr 25 17:06:33 2019 +0100 +++ b/data/model/Model.cpp Wed May 01 11:45:28 2019 +0100 @@ -20,6 +20,8 @@ #include <iostream> +//#define DEBUG_COMPLETION 1 + Model::~Model() { SVDEBUG << "Model::~Model(" << this << ")" << endl; @@ -163,15 +165,20 @@ int Model::getAlignmentCompletion() const { -// SVDEBUG << "Model::getAlignmentCompletion: m_alignment = " -// << m_alignment << endl; +#ifdef DEBUG_COMPLETION + SVCERR << "Model(" << this << ")::getAlignmentCompletion: m_alignment = " + << m_alignment << endl; +#endif if (!m_alignment) { if (m_sourceModel) return m_sourceModel->getAlignmentCompletion(); else return 100; } int completion = 0; (void)m_alignment->isReady(&completion); -// SVDEBUG << " -> " << completion << endl; +#ifdef DEBUG_COMPLETION + SVCERR << "Model(" << this << ")::getAlignmentCompletion: completion = " << completion + << endl; +#endif return completion; }