--- 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; }