mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
Don't crash if snapshotting a GtkGraphicsOffload without child
This commit is contained in:
parent
62ad1a61dc
commit
2c9b47ff3c
@ -226,7 +226,8 @@ gtk_graphics_offload_snapshot (GtkWidget *widget,
|
||||
gtk_widget_get_width (widget),
|
||||
gtk_widget_get_height (widget)));
|
||||
|
||||
gtk_widget_snapshot_child (widget, self->child, snapshot);
|
||||
if (self->child)
|
||||
gtk_widget_snapshot_child (widget, self->child, snapshot);
|
||||
|
||||
if (self->subsurface)
|
||||
gtk_snapshot_pop (snapshot);
|
||||
|
Loading…
Reference in New Issue
Block a user