Fixes for the new check_domain() and check_model() frame order functions.
Authored by: bugman 2014-09-14
Parent: [r25820]
Child: [r25822]