gtkhtml r9031 - trunk/gtkhtml
- From: abharath svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkhtml r9031 - trunk/gtkhtml
- Date: Sun, 19 Oct 2008 17:17:03 +0000 (UTC)
Author: abharath
Date: Sun Oct 19 17:17:02 2008
New Revision: 9031
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=9031&view=rev
Log:
2008-10-03 Milan Crha <mcrha redhat com>
** Fix for bug #546155
* htmltext.c: (convert_nbsp), (update_index_interval):
Update correct index, otherwise it crashes.
Modified:
trunk/gtkhtml/ChangeLog
trunk/gtkhtml/htmltext.c
Modified: trunk/gtkhtml/htmltext.c
==============================================================================
--- trunk/gtkhtml/htmltext.c (original)
+++ trunk/gtkhtml/htmltext.c Sun Oct 19 17:17:02 2008
@@ -1979,11 +1979,12 @@
gunichar uc;
const gchar *this_p, *p;
+ p = text;
+ white_space = 0;
+
#ifdef DEBUG_NBSP
printf ("convert_nbsp: %s --> \"", p);
#endif
- p = text;
- white_space = 0;
while (*p) {
this_p = p;
@@ -2043,7 +2044,7 @@
struct TmpDeltaRecord *rec = c->data;
if (*end_index > index && *end_index <= rec->index) {
- (*start_index) += delta;
+ (*end_index) += delta;
break;
}
index = rec->index;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]