mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
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>
|
2006-01-20 Dan Winship <danw@novell.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init,
|
* 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>
|
2006-01-20 Dan Winship <danw@novell.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init,
|
* 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;
|
GdkRectangle pos;
|
||||||
|
|
||||||
|
if (!text_view->layout)
|
||||||
|
return;
|
||||||
|
|
||||||
if (x == -1 || y == -1)
|
if (x == -1 || y == -1)
|
||||||
gtk_text_view_get_cursor_location (text_view, &pos);
|
gtk_text_view_get_cursor_location (text_view, &pos);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user