diff -r 92682e6369e9 -r a9e67f6e610e file.cpp --- a/file.cpp Wed Apr 10 13:24:35 2013 +0300 +++ b/file.cpp Wed Apr 10 14:10:58 2013 +0300 @@ -468,14 +468,15 @@ // ============================================================================= // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ============================================================================= -void OpenFile::addObject (LDObject* obj) { +ulong OpenFile::addObject (LDObject* obj) { if (this != g_CurrentFile) { objects.insert (objects.end (), obj); - return; + return objects.size() - 1; } const ulong ulSpot = g_ForgeWindow->getInsertionPoint (); objects.insert (objects.begin() + ulSpot, obj); + return ulSpot; } // =============================================================================