diff -r 7962744759ad -r 7ee7aa5e28be zz_setContentsDialog.cpp --- a/zz_setContentsDialog.cpp Mon Apr 22 03:53:21 2013 +0300 +++ b/zz_setContentsDialog.cpp Mon Apr 22 14:14:25 2013 +0300 @@ -97,7 +97,7 @@ // Mark down the history now before we perform the replacement (which // destroys the old object) - History::addEntry (new EditHistory ({oldobj->getIndex (g_CurrentFile)}, + History::addEntry (new EditHistory ({(ulong) oldobj->getIndex (g_CurrentFile)}, {oldobj->clone ()}, {obj->clone ()})); oldobj->replace (obj);