src/ldObject.h

changeset 733
cc39df788660
parent 725
37b71daf4cb5
child 739
152b33a6d51b
--- a/src/ldObject.h	Wed Apr 23 15:39:42 2014 +0300
+++ b/src/ldObject.h	Wed Apr 23 18:25:09 2014 +0300
@@ -263,7 +263,14 @@
 		void setCoordinate (const Axis ax, double value)
 		{
 			Vertex v = position();
-			v[ax] = value;
+
+			switch (ax)
+			{
+				case X: v.setX (value); break;
+				case Y: v.setY (value); break;
+				case Z: v.setZ (value); break;
+			}
+
 			setPosition (v);
 		}
 

mercurial