mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
throw error if GridContainer::set_columns goes below 1, closes #5316
(cherry picked from commit f6725f9768
)
This commit is contained in:

committed by
Rémi Verschelde

parent
801db4c708
commit
6199efbc7e
@@ -156,6 +156,7 @@ void GridContainer::_notification(int p_what) {
|
||||
|
||||
void GridContainer::set_columns(int p_columns) {
|
||||
|
||||
ERR_FAIL_COND(p_columns<1);
|
||||
columns=p_columns;
|
||||
queue_sort();
|
||||
|
||||
|
Reference in New Issue
Block a user