throw error if GridContainer::set_columns goes below 1, closes #5316

This commit is contained in:
Juan Linietsky 2016-06-30 18:54:54 -03:00
parent b391306828
commit f6725f9768
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ void GridContainer::_notification(int p_what) {
void GridContainer::set_columns(int p_columns) { void GridContainer::set_columns(int p_columns) {
ERR_FAIL_COND(p_columns<1);
columns=p_columns; columns=p_columns;
queue_sort(); queue_sort();
minimum_size_changed(); minimum_size_changed();