progressbar: Enforce invariants
When measuring gadgets, minimum must come out <= natural. Make sure we don't fail this when measuring progressbar text. https://bugzilla.gnome.org/show_bug.cgi?id=765644
This commit is contained in:
parent
c27c4e2048
commit
dfdc7c3e0d
@ -808,7 +808,7 @@ gtk_progress_bar_measure_text (GtkCssGadget *gadget,
|
||||
else
|
||||
*minimum = logical_rect.width;
|
||||
|
||||
*natural = logical_rect.width;
|
||||
*natural = MAX (*minimum, logical_rect.width);
|
||||
}
|
||||
else
|
||||
*minimum = *natural = logical_rect.height;
|
||||
|
Loading…
Reference in New Issue
Block a user