diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 41041b3a9e..11ebad9c2d 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -1201,7 +1201,7 @@ get_width_for_height (GtkLabel *self, text_width = PANGO_PIXELS_CEIL (text_width); if (text_width > mid) min = mid = text_width; - if (text_height > height) + else if (text_height > height) min = mid + 1; else max = mid;