def is_in_free_area(self, nr, ok = -<NUM_LIT:1>):
for i, r in enumerate(self.link_rects):<EOL><INDENT>if r.Intersects(nr) and i != ok:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>bmrect = wx.Rect(<NUM_LIT:0>,<NUM_LIT:0>,dlg.bitmap.Size[<NUM_LIT:0>],dlg.bitmap.Size[<NUM_LIT:1>])<EOL>return bmrect.Contains(nr)<EOL>
Determine if rect covers a free area inside the bitmap.