src/ldObject.cc

changeset 767
44f0d5322628
parent 764
335d929c673e
child 768
29e6c5552388
--- a/src/ldObject.cc	Mon May 05 17:09:25 2014 +0300
+++ b/src/ldObject.cc	Mon May 05 17:18:01 2014 +0300
@@ -264,7 +264,7 @@
 {
 	// If this object was selected, unselect it now
 	if (isSelected())
-		unselect();
+		deselect();
 
 	// If this object was associated to a file, remove it off it now
 	if (document())
@@ -295,7 +295,7 @@
 		case LDObject::ETriangle:
 		case LDObject::EQuad:
 
-			for (int i = 0; i < obj->vertices(); ++i)
+			for (int i = 0; i < obj->numVertices(); ++i)
 			{
 				Vertex v = obj->vertex (i);
 				v.transform (transform, pos);
@@ -538,7 +538,7 @@
 	}
 	else
 	{
-		for (int i = 0; i < vertices(); ++i)
+		for (int i = 0; i < numVertices(); ++i)
 			setVertex (i, vertex (i) + vect);
 	}
 }
@@ -657,7 +657,7 @@
 {
 	LDLine* repl = new LDLine;
 
-	for (int i = 0; i < repl->vertices(); ++i)
+	for (int i = 0; i < repl->numVertices(); ++i)
 		repl->setVertex (i, vertex (i));
 
 	repl->setColor (color());
@@ -814,7 +814,7 @@
 
 // =============================================================================
 //
-void LDObject::unselect()
+void LDObject::deselect()
 {
 	assert (document() != null);
 	document()->removeFromSelection (this);

mercurial