src/gui_editactions.cpp

changeset 250
6e80f038e8df
parent 243
a7c72c847634
child 251
c4b96bc41298
--- a/src/gui_editactions.cpp	Fri May 24 03:34:09 2013 +0300
+++ b/src/gui_editactions.cpp	Fri May 24 04:34:20 2013 +0300
@@ -265,7 +265,7 @@
 		
 		// Replace the quad with the first triangle and add the second triangle
 		// after the first one.
-		g_curfile->m_objs[lIndex] = triangles[0];
+		g_curfile->setObject (lIndex, triangles[0]);
 		g_curfile->insertObj (lIndex + 1, triangles[1]);
 		
 		// Delete this quad now, it has been split.
@@ -787,7 +787,7 @@
 
 // =========================================================================================================================================
 static bool isColorUsed (short colnum) {
-	for (LDObject* obj : g_curfile->m_objs)
+	for (LDObject* obj : g_curfile->objs ())
 		if (obj->isColored () && obj->color == colnum)
 			return true;
 	

mercurial