# HG changeset patch # User Santeri Piippo # Date 1382438995 -10800 # Node ID 52d5884b753c7aaf407e6ca041112f435d6d82ee # Parent a12e36f2db5f2e7a561024a7cca82811a93a9338 also removed the if() case mentioned in the prior commit from addObjectDialog.cpp. :P diff -r a12e36f2db5f -r 52d5884b753c src/addObjectDialog.cpp --- 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;