X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/39cdc95fb3819c4b4ed4c41d51dfd770ce5363eb..0738b901b17340f09766524b8d9d79e9ed1268e7:/src/gtk/statbox.cpp diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index a82354bc28..72a26ebbca 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -32,7 +32,7 @@ static void size_allocate(GtkWidget* widget, GtkAllocation* alloc, void*) GtkWidget* label_widget = gtk_frame_get_label_widget(GTK_FRAME(widget)); int w = alloc->width - 2 * widget->style->xthickness - 2 * LABEL_PAD - 2 * LABEL_SIDE_PAD; - if (w < 0) + if (w < 0) w = 0; if (label_widget->allocation.width > w)