Mercurial > hg > svgui
diff view/View.cpp @ 1352:4949061fcb8c zoom
Debug tweaks
author | Chris Cannam |
---|---|
date | Fri, 05 Oct 2018 09:59:41 +0100 |
parents | 5f3e374746b6 |
children | 86429ff00f05 |
line wrap: on
line diff
--- a/view/View.cpp Mon Oct 01 15:48:20 2018 +0100 +++ b/view/View.cpp Fri Oct 05 09:59:41 2018 +0100 @@ -47,7 +47,7 @@ #include <cassert> #include <cmath> -#define DEBUG_VIEW 1 +//#define DEBUG_VIEW 1 //#define DEBUG_VIEW_WIDGET_PAINT 1 View::View(QWidget *w, bool showProgress) : @@ -427,6 +427,7 @@ result = fdiff + m_centreFrame; } +#ifdef DEBUG_VIEW if (x == 0) { SVCERR << "getFrameForX(" << x << "): diff = " << diff << ", fdiff = " << fdiff << ", m_centreFrame = " << m_centreFrame @@ -436,7 +437,8 @@ << ", will return " << result << endl; } - +#endif + return result; }