diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2020-01-15 17:19:35 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2020-01-15 17:24:43 +0300 |
commit | f842ffb1077ef9a5c2f296cf892cb190bf803e1e (patch) | |
tree | 3f8cd64548dd1c99816dc7357b650c02c1ec9d58 /source/blender/editors/screen | |
parent | 758361556b5b9afff506e4247345b739c0f8170c (diff) |
Fix crash with some hidden regions after previous commit
E.g. in the default "Animation" workspace this would crash.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/area.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |