gtkhtml r8699 - trunk/gtkhtml



Author: mcrha
Date: Thu Jan 24 11:18:38 2008
New Revision: 8699
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=8699&view=rev

Log:
2008-01-24  Milan Crha  <mcrha redhat com>

	** Fix for bug #447122

	* htmlclueflow.c: (search_text): Move to next character when
	searching forward also when found as first character of paragraph.



Modified:
   trunk/gtkhtml/ChangeLog
   trunk/gtkhtml/htmlclueflow.c

Modified: trunk/gtkhtml/htmlclueflow.c
==============================================================================
--- trunk/gtkhtml/htmlclueflow.c	(original)
+++ trunk/gtkhtml/htmlclueflow.c	Thu Jan 24 11:18:38 2008
@@ -2279,7 +2279,7 @@
 			if (info->start_pos > 0)
 				index = ((guchar *)g_utf8_offset_to_pointer ((gchar *) par, info->start_pos + ((info->forward) ? 1 : -1))) - par;
 			else
-				index = ((guchar *)g_utf8_offset_to_pointer ((gchar *) par, info->start_pos)) - par;
+				index = ((guchar *)g_utf8_offset_to_pointer ((gchar *) par, info->start_pos + ((info->forward) ? 1 : 0))) - par;
 		} else {
 			index = (info->forward) ? 0 : text_bytes - 1;
 		}



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