Commit 9d0b5fa9 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Don't crash if layout is NULL. (#327934, Christian Kirbach)

2006-01-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_set_virtual_cursor_pos): Don't
	crash if layout is NULL.  (#327934, Christian Kirbach)
parent 967aeb88
2006-01-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_set_virtual_cursor_pos): Don't
crash if layout is NULL. (#327934, Christian Kirbach)
2006-01-20 Dan Winship <danw@novell.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init,
......
2006-01-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_set_virtual_cursor_pos): Don't
crash if layout is NULL. (#327934, Christian Kirbach)
2006-01-20 Dan Winship <danw@novell.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init,
......
......@@ -6873,6 +6873,9 @@ gtk_text_view_set_virtual_cursor_pos (GtkTextView *text_view,
{
GdkRectangle pos;
if (!text_view->layout)
return;
if (x == -1 || y == -1)
gtk_text_view_get_cursor_location (text_view, &pos);
......
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