wxSTC find issue

Hi,
Every time I try to make a search with:
result = doc.FindText(doc.GetLenght(), 0, query, 0)

(query is the text to find)

The python crashes if it can't find no more occurrence.
The problem doent appear when i make the search from 0 -> doc.GetLenght(), but only when searcing in the top direction..
Is this a bug or i'm missing something?

Thanks in advance
Alessandro

Alessandro Crugnola - sephiroth

···

---------------------------------------------
Macromedia Flash Team Volunteer
http://www.macromedia.com/go/team
Flash && PHP developer
alessandro@sephiroth.it

*relax with SEPY http://www.sf.net/projects/sepy
---------------------------------------------