Fixed crash when resizing a window to a zero-height/width size (#984)
This commit is contained in:
parent
3a12fc6505
commit
d4683692e0
@ -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
|
-(void)finishInit
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user