Commit 80dae4f3 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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.
parent a7aa33f1
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> 2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@ * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
......
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> 2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@ * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
......
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> 2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@ * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
......
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> 2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@ * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
......
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> 2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@ * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
......
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> 2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@ * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
......
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> 2001-01-01 Havoc Pennington <hp@redhat.com>
* gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@ * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
......
...@@ -2424,14 +2424,8 @@ gtk_text_layout_move_iter_to_previous_line (GtkTextLayout *layout, ...@@ -2424,14 +2424,8 @@ gtk_text_layout_move_iter_to_previous_line (GtkTextLayout *layout,
{ {
gtk_text_layout_free_line_display (layout, display); gtk_text_layout_free_line_display (layout, display);
display = gtk_text_layout_get_line_display (layout, prev_line, FALSE); display = gtk_text_layout_get_line_display (layout, prev_line, FALSE);
tmp_list = g_slist_last (pango_layout_get_lines (display->layout));
tmp_list = pango_layout_get_lines (display->layout); layout_line = tmp_list->data;
while (tmp_list->next)
{
layout_line = tmp_list->data;
tmp_list = tmp_list->next;
}
line_display_index_to_iter (layout, display, iter, line_display_index_to_iter (layout, display, iter,
layout_line->start_index + layout_line->length, 0); layout_line->start_index + layout_line->length, 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