Fixed weird behavior when only one option is present

This commit is contained in:
Scoopta 2019-11-04 13:55:35 -08:00
parent 9d5e8e2e5a
commit a459a29ca1

View File

@ -307,7 +307,7 @@ static GtkWidget* get_first_child(GtkContainer* container) {
GtkWidget* min_child = NULL;
int64_t x = INT64_MAX;
int64_t y = INT64_MAX;
for(; list->next != NULL; list = list->next) {
for(; list != NULL; list = list->next) {
GtkWidget* child = list->data;
GtkAllocation alloc;
gtk_widget_get_allocation(child, &alloc);