src/gldraw.cpp

changeset 211
8d35e631bef3
parent 210
58a3cbb49374
child 212
79c5205b807c
--- a/src/gldraw.cpp	Thu May 16 02:26:50 2013 +0300
+++ b/src/gldraw.cpp	Thu May 16 22:59:10 2013 +0300
@@ -157,7 +157,10 @@
 	m_panX = m_panY = m_rotZ = 0.0f;
 	
 	// Set the default zoom based on the bounding box
-	m_zoom = g_BBox.size () * 6;
+	if (g_BBox.empty () == false)
+		m_zoom = g_BBox.size () * 6;
+	else
+		m_zoom = 30.0f;
 }
 
 // =============================================================================

mercurial