changeset 999:477fbf3f10ca tony-2.0-integration

At least avoid crashing if scaled zoom level reaches 0!
author Chris Cannam
date Thu, 20 Aug 2015 17:05:51 +0100
parents 1a6304c547bf
children 4c8e7014abab
files view/ViewProxy.h
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/view/ViewProxy.h	Thu Aug 20 15:40:04 2015 +0100
+++ b/view/ViewProxy.h	Thu Aug 20 17:05:51 2015 +0100
@@ -76,6 +76,7 @@
 	cerr << "getZoomLevel: from " << z << " to ";
 	z = z / m_scaleFactor;
 	cerr << z << endl;
+        if (z < 1) z = 1;
 	return z;
     }
     virtual QRect getPaintRect() const {