Fixed: nib2cib: checks if there's a defined superview in resizeWithOldSuperviewSize (#2995)

This commit is contained in:
Didier Korthoudt authored and GitHub committed 2021-11-23 13:47:54 +01:00
1 parent b66690e304
commit 37756a5853
1 file changed
+1 -1
+1 -1
View File
@@ -1479,7 +1479,7 @@ var CPViewHighDPIDrawingEnabled = YES;
{
var mask = [self autoresizingMask];
if (mask === CPViewNotSizable)
if ((mask === CPViewNotSizable) || !_superview)
return;
var frame = _superview._frame,