diff data/model/Model.cpp @ 323:a71dec01c4d3

* Some tidying up to handling of alignment; add alignment status label to pane; ensure alignment when dragging with mouse as well as when playing
author Chris Cannam
date Thu, 25 Oct 2007 14:32:23 +0000
parents 3ff8f571da09
children 1afaf98dbf11
line wrap: on
line diff
--- a/data/model/Model.cpp	Thu Oct 25 14:30:32 2007 +0000
+++ b/data/model/Model.cpp	Thu Oct 25 14:32:23 2007 +0000
@@ -96,7 +96,7 @@
 const Model *
 Model::getAlignmentReference() const
 {
-    if (!m_alignment) return 0;
+    if (!m_alignment) return this;
     return m_alignment->getReferenceModel();
 }
 
@@ -117,11 +117,11 @@
 int
 Model::getAlignmentCompletion() const
 {
-    std::cerr << "Model::getAlignmentCompletion" << std::endl;
+//    std::cerr << "Model::getAlignmentCompletion" << std::endl;
     if (!m_alignment) return 100;
     int completion = 0;
     (void)m_alignment->isReady(&completion);
-    std::cerr << " -> " << completion << std::endl;
+//    std::cerr << " -> " << completion << std::endl;
     return completion;
 }