src/addObjectDialog.cpp

changeset 524
52d5884b753c
parent 516
d3373bc7ca3b
child 525
4f6e46a3bfc3
--- 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;

mercurial