Fixed crash when resizing a window to a zero-height/width size (#984)

This commit is contained in:
Marco Antognini 2015-10-10 15:59:14 +02:00 committed by Lukas Dürrenberger
parent 3a12fc6505
commit d4683692e0

View File

@ -170,6 +170,17 @@ BOOL isValidTextUnicode(NSEvent* event);
}
////////////////////////////////////////////////////////
-(void)update
{
// In order to prevent an infinite recursion when the window/view is
// resized to zero-height/width, we ignore update event when resizing.
if (![self inLiveResize]) {
[super update];
}
}
////////////////////////////////////////////////////////
-(void)finishInit
{