src/ldtypes.cpp

changeset 500
cad8cdc42a64
parent 498
791c831c8020
child 503
bebe09014dd6
--- a/src/ldtypes.cpp	Sun Oct 06 21:37:05 2013 +0300
+++ b/src/ldtypes.cpp	Wed Oct 16 15:32:38 2013 +0300
@@ -230,12 +230,11 @@
 void LDObject::swap (LDObject* other)
 {	int i = 0;
 
-for (LDObject * obj : file()->objects())
+	for (LDObject* obj : file()->objects())
 	{	if (obj == this)
 			file()->setObject (i, other);
-
 		elif (obj == other)
-		file()->setObject (i, this);
+			file()->setObject (i, this);
 
 		++i;
 	}

mercurial