- // if the object is last, remove it from the list (needed to skip empty transaction on edit of sketch feature)
- if (aList->object(aList->size(true) - 1, true) == theFeature) {
- aList->remove(theFeature);
- } else {
- // to keep the persistent sub-elements indexing, do not remove elements from list,
- // but substitute by nulls
- aList->substitute(theFeature, ObjectPtr());
- }