Commit a98a2b99 authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington

Fix bug reported by Mikael Hermansson with patch from Mikael (if there was

2001-02-03  Havoc Pennington  <hp@pobox.com>

	* gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
	Mikael Hermansson with patch from Mikael (if there was a toggle
	start one after the first character in the range, this function
	was broken). Bug #50380
parent d3e4e592
2001-02-03 Havoc Pennington <hp@pobox.com>
* gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
Mikael Hermansson with patch from Mikael (if there was a toggle
start one after the first character in the range, this function
was broken). Bug #50380
Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com> Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove confusing comment about X11. * configure.in: Remove confusing comment about X11.
......
2001-02-03 Havoc Pennington <hp@pobox.com>
* gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
Mikael Hermansson with patch from Mikael (if there was a toggle
start one after the first character in the range, this function
was broken). Bug #50380
Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com> Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove confusing comment about X11. * configure.in: Remove confusing comment about X11.
......
2001-02-03 Havoc Pennington <hp@pobox.com>
* gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
Mikael Hermansson with patch from Mikael (if there was a toggle
start one after the first character in the range, this function
was broken). Bug #50380
Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com> Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove confusing comment about X11. * configure.in: Remove confusing comment about X11.
......
2001-02-03 Havoc Pennington <hp@pobox.com>
* gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
Mikael Hermansson with patch from Mikael (if there was a toggle
start one after the first character in the range, this function
was broken). Bug #50380
Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com> Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove confusing comment about X11. * configure.in: Remove confusing comment about X11.
......
2001-02-03 Havoc Pennington <hp@pobox.com>
* gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
Mikael Hermansson with patch from Mikael (if there was a toggle
start one after the first character in the range, this function
was broken). Bug #50380
Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com> Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove confusing comment about X11. * configure.in: Remove confusing comment about X11.
......
2001-02-03 Havoc Pennington <hp@pobox.com>
* gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
Mikael Hermansson with patch from Mikael (if there was a toggle
start one after the first character in the range, this function
was broken). Bug #50380
Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com> Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove confusing comment about X11. * configure.in: Remove confusing comment about X11.
......
2001-02-03 Havoc Pennington <hp@pobox.com>
* gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
Mikael Hermansson with patch from Mikael (if there was a toggle
start one after the first character in the range, this function
was broken). Bug #50380
Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com> Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove confusing comment about X11. * configure.in: Remove confusing comment about X11.
......
...@@ -1606,8 +1606,11 @@ _gtk_text_btree_tag (const GtkTextIter *start_orig, ...@@ -1606,8 +1606,11 @@ _gtk_text_btree_tag (const GtkTextIter *start_orig,
with the tree. */ with the tree. */
stack = iter_stack_new (); stack = iter_stack_new ();
iter = start; iter = start;
/* We don't want to delete a toggle that's at the start iterator. */
gtk_text_iter_forward_char (&iter); /* forward_to_tag_toggle() skips a toggle at the start iterator,
* which is deliberate - we don't want to delete a toggle at the
* start.
*/
while (gtk_text_iter_forward_to_tag_toggle (&iter, tag)) while (gtk_text_iter_forward_to_tag_toggle (&iter, tag))
{ {
if (gtk_text_iter_compare (&iter, &end) >= 0) if (gtk_text_iter_compare (&iter, &end) >= 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment