aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/os_unix.cpp
diff options
context:
space:
mode:
authorGary Oberbrunner2018-03-02 14:32:22 -0500
committerHein-Pieter van Braam2018-03-28 23:45:39 +0200
commit91bc8451524c97570955b74f7b68297c37777023 (patch)
treef3d860e6df556ab6306e9943460fe4995327a819 /drivers/unix/os_unix.cpp
parentd8a0b6ba639a2d362e2990d9fe44c51c6d54fcf7 (diff)
downloadgodot-91bc8451524c97570955b74f7b68297c37777023.tar.gz
godot-91bc8451524c97570955b74f7b68297c37777023.tar.zst
godot-91bc8451524c97570955b74f7b68297c37777023.zip
Fix infinite loop in GridContainer layout
I had a grid container and tried to set rect.min_height larger in the editor; that caused an infinite loop in GridContainer::_notification at line 118. The reason is max_index was being set to the *height* of the row, not the *index* of the row. So later when it tried to erase that row and try again, there was nothing to erase. I applied the same fix to the width code. (cherry picked from commit 561e57df1386122714fae7b413be91e210b33b65)
Diffstat (limited to 'drivers/unix/os_unix.cpp')
0 files changed, 0 insertions, 0 deletions