Fix unitialized variable when moving back onto a single line.

Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktextlayout.c
	(gtk_text_layout_move_iter_to_previous_line): Fix unitialized
	variable when moving back onto a single line.
This commit is contained in:
Owen Taylor 2001-01-02 21:43:35 +00:00 committed by Owen Taylor
parent a7aa33f14e
commit 80dae4f300
8 changed files with 44 additions and 8 deletions

View File

@ -1,3 +1,9 @@
Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c
(gtk_text_layout_move_iter_to_previous_line): Fix unitialized
variable when moving back onto a single line.
2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@

View File

@ -1,3 +1,9 @@
Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c
(gtk_text_layout_move_iter_to_previous_line): Fix unitialized
variable when moving back onto a single line.
2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@

View File

@ -1,3 +1,9 @@
Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c
(gtk_text_layout_move_iter_to_previous_line): Fix unitialized
variable when moving back onto a single line.
2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@

View File

@ -1,3 +1,9 @@
Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c
(gtk_text_layout_move_iter_to_previous_line): Fix unitialized
variable when moving back onto a single line.
2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@

View File

@ -1,3 +1,9 @@
Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c
(gtk_text_layout_move_iter_to_previous_line): Fix unitialized
variable when moving back onto a single line.
2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@

View File

@ -1,3 +1,9 @@
Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c
(gtk_text_layout_move_iter_to_previous_line): Fix unitialized
variable when moving back onto a single line.
2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@

View File

@ -1,3 +1,9 @@
Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c
(gtk_text_layout_move_iter_to_previous_line): Fix unitialized
variable when moving back onto a single line.
2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@

View File

@ -2424,14 +2424,8 @@ gtk_text_layout_move_iter_to_previous_line (GtkTextLayout *layout,
{
gtk_text_layout_free_line_display (layout, display);
display = gtk_text_layout_get_line_display (layout, prev_line, FALSE);
tmp_list = pango_layout_get_lines (display->layout);
while (tmp_list->next)
{
layout_line = tmp_list->data;
tmp_list = tmp_list->next;
}
tmp_list = g_slist_last (pango_layout_get_lines (display->layout));
layout_line = tmp_list->data;
line_display_index_to_iter (layout, display, iter,
layout_line->start_index + layout_line->length, 0);