--- a/src/addObjectDialog.cpp Tue Oct 22 13:47:41 2013 +0300 +++ b/src/addObjectDialog.cpp Tue Oct 22 13:49:55 2013 +0300 @@ -313,8 +313,7 @@ matrix transform = g_identity; AddObjectDialog dlg (type, obj); - if (obj) - assert (obj->getType() == type); + assert (!obj || obj->getType() == type); if (dlg.exec() == false) return;