--- a/src/addObjectDialog.cpp Sat Oct 05 12:51:13 2013 +0300 +++ b/src/addObjectDialog.cpp Sat Oct 05 15:18:47 2013 +0300 @@ -404,7 +404,7 @@ obj->setColor (dlg.colnum); if (newObject) - { ulong idx = g_win->getInsertionPoint(); + { int idx = g_win->getInsertionPoint(); LDFile::current()->insertObj (idx, obj); }