Complete rewrite of
KCHMViewWindow_QTextBrowser::searchWord. Instead of
searching based on paragraph and index, it searches
based on QTextEdit's current position. According to QT
documentation:
"Using the para and index parameters will not work
correctly in case the document contains tables."
http://doc.trolltech.com/3.3/qtextedit.html#find
That fixes search issues I have reported on the forum
with jdk142 chm file
(http://sourceforge.net/forum/message.php?msg_id=3690722).
It fixes the out of range messages as well.
I have also implemented an original wrap system. When a
search is made past the last match of the page, a
message is displayed on the status bar and a beep is
issued. If another search is made in the same direction
and for the same word, then the search will wrap. (The
QApplication::beep() is without effect on my system
(FC4) but I left it there nonetheless).
Note the patch was made against the RELEASE_2_0 version
because the version 2.5 is not tagged in the repository.