forked from AuroraMiddleware/gtk
treeview: Add an explicit return for clarity
I believe that first_column can only ever be NULL here if last_column is NULL too, in which case we'd exited already. But coverity doesn't see that, so add an explicit exit.
This commit is contained in:
parent
0ebcc56a77
commit
ee43462d74
@ -2687,6 +2687,9 @@ gtk_tree_view_size_allocate_columns (GtkWidget *widget,
|
||||
first_column = first_column->next)
|
||||
;
|
||||
|
||||
if (first_column == NULL)
|
||||
return;
|
||||
|
||||
rtl = (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL);
|
||||
|
||||
/* find out how many extra space and expandable columns we have */
|
||||
|
Loading…
Reference in New Issue
Block a user