src/gui_editactions.cpp

changeset 539
72ad83a67165
parent 538
2f85d4d286e5
child 540
0334789cb4d7
--- a/src/gui_editactions.cpp	Thu Dec 05 13:51:52 2013 +0200
+++ b/src/gui_editactions.cpp	Thu Dec 05 23:20:50 2013 +0200
@@ -316,7 +316,7 @@
 		for (int i = 0; i < obj->vertices(); ++i)
 		{	LDVertex* vert = new LDVertex;
 			vert->pos = obj->getVertex (i);
-			vert->setColor (obj->color());
+			vert->setColor (obj->getColor());
 
 			LDFile::current()->insertObj (++idx, vert);
 			g_win->R()->compileObject (vert);
@@ -462,7 +462,7 @@
 			mo->setPosition (v);
 
 			// Transform the matrix
-			mo->setTransform (mo->transform() * transform);
+			mo->setTransform (mo->getTransform() * transform);
 		} elif (obj->getType() == LDObject::Vertex)
 		{	LDVertex* vert = static_cast<LDVertex*> (obj);
 			vertex v = vert->pos;
@@ -651,8 +651,8 @@
 // =============================================================================
 // -----------------------------------------------------------------------------
 static bool isColorUsed (int colnum)
-{	for (LDObject* obj : LDFile::current()->objects())
-		if (obj->isColored() && obj->color() == colnum)
+{	for (LDObject* obj : LDFile::current()->getObjects())
+		if (obj->isColored() && obj->getColor() == colnum)
 			return true;
 
 	return false;

mercurial