mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 19:01:15 +00:00
do not crash if passed rect as value is nil
This commit is contained in:
parent
4f255d2750
commit
53a85514c1
1 changed files with 6 additions and 1 deletions
|
@ -2830,9 +2830,14 @@ in the main thread.
|
|||
|
||||
- (void) _setNeedsDisplayInRect_real: (NSValue *)v
|
||||
{
|
||||
NSRect invalidRect = [v rectValue];
|
||||
NSRect invalidRect;
|
||||
NSView *currentView = _super_view;
|
||||
|
||||
if (nil == v)
|
||||
return;
|
||||
|
||||
invalidRect = [v rectValue];
|
||||
|
||||
/*
|
||||
* Limit to bounds, combine with old _invalidRect, and then check to see
|
||||
* if the result is the same as the old _invalidRect - if it isn't then
|
||||
|
|
Loading…
Reference in a new issue