Don't crash if snapshotting a GtkGraphicsOffload without child
This commit is contained in:
committed by
Matthias Clasen
parent
23a046c1f8
commit
aa90a3cb94
@@ -208,7 +208,8 @@ gtk_graphics_offload_snapshot (GtkWidget *widget,
|
||||
if (self->subsurface)
|
||||
gtk_snapshot_push_subsurface (snapshot, self->subsurface);
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user