summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-02-20 04:53:47 +0100
committerBenjamin Otte <otte@redhat.com>2019-02-20 05:26:31 +0100
commit01f7f255b5a2bb6407825c0f5dc05ecfe5cffe88 (patch)
treeaca81a7d0a5d37121fbbedd44ed05198f2b0d637 /gtk/gtktreeviewcolumn.c
parent514c3679dc7647db1e64734dab3afc9c9e761e72 (diff)
downloadgtk+-01f7f255b5a2bb6407825c0f5dc05ecfe5cffe88.tar.gz
gtk: Check return value of compute_bounds()
Half of these calls will completely break if anybody ever uses CSS transforms with them, but hey...
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index aa730c8f9b..674cb7696b 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -3060,7 +3060,8 @@ _gtk_tree_view_column_coords_in_resize_rect (GtkTreeViewColumn *column,
!priv->visible)
return FALSE;
- gtk_widget_compute_bounds (priv->button, priv->tree_view, &button_bounds);
+ if (!gtk_widget_compute_bounds (priv->button, priv->tree_view, &button_bounds))
+ return FALSE;
if (gtk_widget_get_direction (priv->tree_view) == GTK_TEXT_DIR_LTR)
button_bounds.origin.x += button_bounds.size.width - TREE_VIEW_DRAG_WIDTH;