Skip to content

boxlayout: Do not infloop

Benjamin Otte requested to merge cherry-pick-515b1f52 into gtk-4-6

if the loop for determining max width grows too big, print an error and abort assuming that a satisfactory value was reached.

This will cause wrong layout and might cause widgets to overlap, but it will not infloop.

It actually works around and doesn't really fix the primary cause of the following bugs, but good enough to close them:

Fixes: #4252 (closed) Fixes: #4517 (closed)

(cherry picked from commit 515b1f52)

Merge request reports