1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Check if p_child is not null in Container.fit_child_rect()

Fixes #24725
This commit is contained in:
Timo Schwarzer
2019-01-03 13:59:37 +01:00
parent 200be0795d
commit a8f367a4b8

View File

@@ -95,6 +95,7 @@ void Container::_sort_children() {
void Container::fit_child_in_rect(Control *p_child, const Rect2 &p_rect) {
ERR_FAIL_COND(!p_child);
ERR_FAIL_COND(p_child->get_parent() != this);
Size2 minsize = p_child->get_combined_minimum_size();