fix for Bug 310990[gtkhtml]
Rohini <[email protected]>
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <[email protected]> |
Hi Attached fix for Bug 310990 – does not find the first instance of the search-text if there are more than one instance Please Review Thanks, Rohini _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches
bug310990.diff
(text/x-patch, 1 KB)
Index: htmlsearch.c =================================================================== RCS file: /cvs/gnome/gtkhtml/src/htmlsearch.c,v retrieving revision 1.18 diff -u -p -r1.18 htmlsearch.c --- htmlsearch.c 19 May 2005 09:22:25 -0000 1.18 +++ htmlsearch.c 10 Feb 2006 10:54:37 -0000 @@ -60,7 +60,7 @@ html_search_new (HTMLEngine *e, const gc HTMLObject *o; ns->stack = NULL; - if (ns->start_pos > 0 ) + if (ns->start_pos >= 0 ) ns->start_pos = e->cursor->offset - 1; else ns->start_pos = 0; Index: ChangeLog =================================================================== RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v retrieving revision 1.2161 diff -u -p -r1.2161 ChangeLog --- ChangeLog 9 Feb 2006 06:33:15 -0000 1.2161 +++ ChangeLog 10 Feb 2006 11:13:11 -0000 @@ -1,3 +1,9 @@ +2006-02-10 Rohini S <[email protected]> + + * htmlsearch.c (html_search_new): Function modified to include offset zero too. + + Fixes bug #310990 + 2006-02-09 Irene Huang <[email protected]> Fixes bug #318973