src/gldraw.cpp

changeset 282
c890f42c8054
parent 281
7904abfbdcef
child 285
836e77323ab0
--- a/src/gldraw.cpp	Thu Jun 13 03:12:34 2013 +0300
+++ b/src/gldraw.cpp	Thu Jun 13 14:00:34 2013 +0300
@@ -514,14 +514,12 @@
 		
 		// If we're drawing, draw the vertices onto the screen.
 		if (editMode () == Draw) {
-			ushort numverts;
+			const short blipsize = 8;
+			int numverts = 4;
 			
-			numverts = 4;
 			if (!m_rectdraw)
 				numverts = m_drawedVerts.size () + 1;
 			
-			const short blipsize = 8;
-			
 			if (numverts > 0) {
 				QPoint poly[4];
 				vertex polyverts[4];
@@ -544,7 +542,7 @@
 				} else {
 					if (m_drawedVerts.size () > 0) {
 						// Get vertex information from m_rectverts
-						for (ushort i = 0; i < numverts; ++i) {
+						for (int i = 0; i < numverts; ++i) {
 							polyverts[i] = m_rectverts[i];
 							poly[i] = coordconv3_2 (polyverts[i]);
 						}
@@ -645,7 +643,7 @@
 	}
 	
 	// If we're range-picking, draw a rectangle encompassing the selection area.
-	if (m_rangepick && !m_picking) {
+	if (m_rangepick && !m_picking && m_totalmove >= 10) {
 		const short x0 = m_rangeStart.x (),
 			y0 = m_rangeStart.y (),
 			x1 = m_pos.x (),

mercurial