Fix for Issue #350, compiler warning due to illegal test in controller canvas