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

fix to use ensure_byte_offsets not ensure_char_offsets, patch from Padraig

2001-12-31  Havoc Pennington  <hp@pobox.com>

	* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
	to use ensure_byte_offsets not ensure_char_offsets, patch
	from Padraig O'Briain bug #67356
parent 5c6ef799
2001-12-31 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
to use ensure_byte_offsets not ensure_char_offsets, patch
from Padraig O'Briain bug #67356
2001-12-30 Havoc Pennington <hp@pobox.com>
* gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
......
2001-12-31 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
to use ensure_byte_offsets not ensure_char_offsets, patch
from Padraig O'Briain bug #67356
2001-12-30 Havoc Pennington <hp@pobox.com>
* gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
......
2001-12-31 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
to use ensure_byte_offsets not ensure_char_offsets, patch
from Padraig O'Briain bug #67356
2001-12-30 Havoc Pennington <hp@pobox.com>
* gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
......
2001-12-31 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
to use ensure_byte_offsets not ensure_char_offsets, patch
from Padraig O'Briain bug #67356
2001-12-30 Havoc Pennington <hp@pobox.com>
* gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
......
2001-12-31 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
to use ensure_byte_offsets not ensure_char_offsets, patch
from Padraig O'Briain bug #67356
2001-12-30 Havoc Pennington <hp@pobox.com>
* gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
......
2001-12-31 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
to use ensure_byte_offsets not ensure_char_offsets, patch
from Padraig O'Briain bug #67356
2001-12-30 Havoc Pennington <hp@pobox.com>
* gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
......
2001-12-31 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
to use ensure_byte_offsets not ensure_char_offsets, patch
from Padraig O'Briain bug #67356
2001-12-30 Havoc Pennington <hp@pobox.com>
* gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
......
......@@ -732,9 +732,11 @@ gtk_text_iter_get_visible_line_offset (const GtkTextIter *iter)
ensure_char_offsets (real);
check_invariants (iter);
vis_offset = real->line_char_offset;
g_assert (vis_offset >= 0);
_gtk_text_btree_get_iter_at_line (real->tree,
&pos,
real->line,
......@@ -792,12 +794,14 @@ gtk_text_iter_get_visible_line_index (const GtkTextIter *iter)
if (real == NULL)
return 0;
ensure_char_offsets (real);
ensure_byte_offsets (real);
check_invariants (iter);
vis_offset = real->line_byte_offset;
g_assert (vis_offset >= 0);
_gtk_text_btree_get_iter_at_line (real->tree,
&pos,
real->line,
......
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