diff view/Pane.cpp @ 1352:4949061fcb8c zoom

Debug tweaks
author Chris Cannam
date Fri, 05 Oct 2018 09:59:41 +0100
parents 97c68bffbda6
children 40b9a495a0e0
line wrap: on
line diff
--- a/view/Pane.cpp	Mon Oct 01 15:48:20 2018 +0100
+++ b/view/Pane.cpp	Fri Oct 05 09:59:41 2018 +0100
@@ -213,12 +213,15 @@
         }
     }
 
+    SVCERR << "haveConstraint = " << haveConstraint << endl;
+            
     if (haveConstraint) {
         while (true) {
             //!!! this won't terminate if level is in the PixelsPerFrame zone
             if (getZoomLevel() == level) current = count;
             ZoomLevel newLevel = getZoomConstraintLevel(level.incremented(),
                                                         ZoomConstraint::RoundUp);
+            SVCERR << "newLevel = " << newLevel << endl;
             if (newLevel == level) break;
             level = newLevel;
             if (++count == 50) break;
@@ -240,7 +243,7 @@
                 step *= 2;
                 --pwr;
             }
-//            cerr << level << endl;
+            cerr << level.level << ", step " << step << endl;
             level.level += step;
             if (++count == 100 || level.level > 262144) break;
         }