Quote Originally Posted by JSoftware
[pascal]
+--+
| |
+--+--+-+
| | | |
+--+--+-+
| |
+--+
[/pascal]

Shall this condition evaluate true in the RectInRect function?
If yes, then Sly's code isn't complete
Good question. Note that even JDarlings function will not detect this, since there are no corner points inside any of the rects.