[gtk+/wip/baedert/drawing: 6/22] centerbox: Avoid accessing unset widgets
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 6/22] centerbox: Avoid accessing unset widgets
- Date: Tue, 4 Jul 2017 17:09:41 +0000 (UTC)
commit e4a48229cf10ddef2dbb08aea51bce14b2edd1ac
Author: Timm Bäder <mail baedert org>
Date: Sat Jul 1 18:15:41 2017 +0200
centerbox: Avoid accessing unset widgets
gtk/gtkcenterbox.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcenterbox.c b/gtk/gtkcenterbox.c
index 8b89df5..549d34f 100644
--- a/gtk/gtkcenterbox.c
+++ b/gtk/gtkcenterbox.c
@@ -448,7 +448,7 @@ gtk_center_box_size_allocate (GtkWidget *widget,
for (i = 0; i < 3; i++)
{
- if (gtk_widget_get_valign (child[i]) == GTK_ALIGN_BASELINE)
+ if (child[i] && gtk_widget_get_valign (child[i]) == GTK_ALIGN_BASELINE)
{
int child_min_height, child_nat_height;
int child_min_baseline, child_nat_baseline;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]