[evolution-patches] fix for Bug 310990[gtkhtml]



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
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  <srohini novell com>
+
+	* htmlsearch.c (html_search_new): Function modified to include offset zero too.
+
+	Fixes bug #310990
+
 2006-02-09  Irene Huang <Irene Huang sun com>
 
 	Fixes bug #318973


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]