[gtk/static-analysis-fixes: 9/13] stack: Static analysis fixes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/static-analysis-fixes: 9/13] stack: Static analysis fixes
- Date: Mon, 3 May 2021 11:45:02 +0000 (UTC)
commit faf56a8abe7782c643011fc75c513c8071bfcbaa
Author: Matthias Clasen <mclasen redhat com>
Date: Mon May 3 07:35:21 2021 -0400
stack: Static analysis fixes
gtk/gtkstack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 4c7274d336..896a0b63de 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -2320,7 +2320,7 @@ gtk_stack_snapshot_cube (GtkWidget *widget,
if (priv->active_transition_type == GTK_STACK_TRANSITION_TYPE_ROTATE_LEFT)
gtk_widget_snapshot_child (widget, priv->visible_child->widget, snapshot);
- else
+ else if (priv->last_visible_child)
gtk_widget_snapshot_child (widget, priv->last_visible_child->widget, snapshot);
gtk_snapshot_restore (snapshot);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]