diff options
| author | Gary Oberbrunner | 2018-03-02 14:32:22 -0500 |
|---|---|---|
| committer | Gary Oberbrunner | 2018-03-10 14:38:35 -0500 |
| commit | 561e57df1386122714fae7b413be91e210b33b65 (patch) | |
| tree | f07ecb2bb48a8cc94cc07288dc22631dc50d18ff /misc/scripts/fix_headers.py | |
| parent | eceba5aa6a36521c878cf976845123e820d27161 (diff) | |
| download | godot-561e57df1386122714fae7b413be91e210b33b65.tar.gz godot-561e57df1386122714fae7b413be91e210b33b65.tar.zst godot-561e57df1386122714fae7b413be91e210b33b65.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.
Diffstat (limited to 'misc/scripts/fix_headers.py')
0 files changed, 0 insertions, 0 deletions
