Fix crash with some hidden regions after previous commit

E.g. in the default "Animation" workspace this would crash.
This commit is contained in:
Julian Eisel
2020-01-15 15:19:35 +01:00
parent 758361556b
commit f842ffb107

View File

@@ -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 */