Just in case anyone happens across this comment in the future, there was a typo. The check should be ```ev== NULL || ev->obj == TrimAnglesSettingsHandle()```, not ```ev->obj == NULL || ev->obj == TrimAnglesSettingsHandle()```.