forked from AuroraMiddleware/gtk
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)
This commit is contained in:
parent
967aeb882b
commit
9d0b5fa9dd
@ -1,3 +1,8 @@
|
||||
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,
|
||||
|
@ -1,3 +1,8 @@
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user