code needed. If selected shape has a contour then do something

see above