src/editmodes/circleMode.cpp

changeset 1013
fa025ba493d8
parent 1011
4fdd74a04790
child 1014
f0a8ecb6a357
--- a/src/editmodes/circleMode.cpp	Wed Nov 18 19:05:22 2015 +0200
+++ b/src/editmodes/circleMode.cpp	Thu Nov 19 00:43:18 2015 +0200
@@ -45,7 +45,7 @@
 		renderer()->getRelativeAxes (localx, localy);
 		double dx = m_drawedVerts[0][localx] - v1[localx];
 		double dy = m_drawedVerts[0][localy] - v1[localy];
-		return Grid::Snap (sqrt ((dx * dx) + (dy * dy)), Grid::Coordinate);
+		return snapToGrid (sqrt ((dx * dx) + (dy * dy)), Grid::Coordinate);
 	}
 
 	return 0.0;

mercurial