Code

When combining paths: clear the selection before deleting the original objects