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
This commit is contained in:
Havoc Pennington 2001-12-31 16:31:51 +00:00 committed by Havoc Pennington
parent 5c6ef7990c
commit a307ffbf11
8 changed files with 48 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -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,