--- a/src/addObjectDialog.cpp Tue Jul 30 21:31:36 2013 +0300 +++ b/src/addObjectDialog.cpp Thu Aug 01 02:33:07 2013 +0300 @@ -373,7 +373,7 @@ if (name.length () == 0) return; // no subfile filename - LDOpenFile* file = getFile (name); + LDFile* file = getFile (name); if (!file) { critical (fmt ("Couldn't open `%1': %2", name, strerror (errno))); return; @@ -398,7 +398,7 @@ if (newObject) { ulong idx = g_win->getInsertionPoint (); - LDOpenFile::current()->insertObj (idx, obj); + LDFile::current()->insertObj (idx, obj); } g_win->fullRefresh ();