zz_addObjectDialog.cpp

changeset 153
03a7bdcce50d
parent 150
bcbbdc5454e6
child 154
cc53e5cbad54
--- a/zz_addObjectDialog.cpp	Fri May 03 18:30:38 2013 +0300
+++ b/zz_addObjectDialog.cpp	Fri May 03 18:49:23 2013 +0300
@@ -432,7 +432,8 @@
 		break;
 	}
 	
-	ulong idx = g_CurrentFile->addObject (obj);
+	ulong idx = g_ForgeWindow->getInsertionPoint ();
+	g_CurrentFile->insertObj (idx, obj);
 	History::addEntry (new AddHistory ({idx}, {obj->clone ()}));
 	g_ForgeWindow->refresh ();
 }
\ No newline at end of file

mercurial