src/addObjectDialog.cpp

changeset 524
52d5884b753c
parent 516
d3373bc7ca3b
child 525
4f6e46a3bfc3
equal deleted inserted replaced
523:a12e36f2db5f 524:52d5884b753c
311 311
312 const bool newObject = (obj == null); 312 const bool newObject = (obj == null);
313 matrix transform = g_identity; 313 matrix transform = g_identity;
314 AddObjectDialog dlg (type, obj); 314 AddObjectDialog dlg (type, obj);
315 315
316 if (obj) 316 assert (!obj || obj->getType() == type);
317 assert (obj->getType() == type);
318 317
319 if (dlg.exec() == false) 318 if (dlg.exec() == false)
320 return; 319 return;
321 320
322 if (type == LDObject::Subfile) 321 if (type == LDObject::Subfile)

mercurial