summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-02-18 16:24:13 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-02-18 16:24:13 +0000
commitd7cc776d0153a6d0282f677c5f47a265f2f33bf6 (patch)
tree427158c796b828a75472d2a15667659d8707b918 /gtk/gtktextlayout.c
parent81748c6fba9124fba7925e7a9821f8756577ba23 (diff)
downloadgtk+-d7cc776d0153a6d0282f677c5f47a265f2f33bf6.tar.gz
Ignore invisible text when going to end of the previous line. (#382565)
2007-02-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually): Ignore invisible text when going to end of the previous line. (#382565) svn path=/trunk/; revision=17328
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r--gtk/gtktextlayout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 37696fa498..983944ab38 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -3189,7 +3189,8 @@ gtk_text_layout_move_iter_visually (GtkTextLayout *layout,
gtk_text_layout_free_line_display (layout, display);
display = gtk_text_layout_get_line_display (layout, line, FALSE);
- new_index = _gtk_text_line_byte_count (line);
+ gtk_text_iter_forward_to_line_end (&lineiter);
+ new_index = gtk_text_iter_get_visible_line_index (&lineiter);
}
else if (new_index > byte_count)
{