# HG changeset patch # User Chris Cannam # Date 1440086751 -3600 # Node ID 477fbf3f10cac47bad2d5c4de3f72bb8b2361ae4 # Parent 1a6304c547bfd90616588052939e4cefe566a374 At least avoid crashing if scaled zoom level reaches 0! diff -r 1a6304c547bf -r 477fbf3f10ca view/ViewProxy.h --- 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 {