--- a/src/addObjectDialog.cpp Mon Jul 15 22:32:23 2013 +0300 +++ b/src/addObjectDialog.cpp Tue Jul 16 01:33:11 2013 +0300 @@ -398,7 +398,7 @@ if (newObject) { ulong idx = g_win->getInsertionPoint (); - currentFile()->insertObj (idx, obj); + LDOpenFile::current()->insertObj (idx, obj); } g_win->fullRefresh ();