From f842ffb1077ef9a5c2f296cf892cb190bf803e1e Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 15 Jan 2020 15:19:35 +0100 Subject: [PATCH] Fix crash with some hidden regions after previous commit E.g. in the default "Animation" workspace this would crash. --- source/blender/editors/screen/area.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index a4318db0cb5..f4d9c353102 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1497,9 +1497,11 @@ static void region_rect_recursive( default: /* prevent winrct to be valid */ ar->winrct.xmax = ar->winrct.xmin; - BLI_rcti_sanitize(&ar->winrct); break; } + + /* Size on one axis is now 0, the other axis may still be invalid (negative) though. */ + BLI_rcti_sanitize(&ar->winrct); } /* restore prev-split exception */