if { [isdraw result] } {
  checkshape result
}