mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Use NSIsEmptyRect instead of comparing size to NSZeroSize
This commit is contained in:
@@ -1054,7 +1054,7 @@ static NSMutableIndexSet* MutableLongestCommonSubsequence (NSArray* lhs, NSArray
|
||||
{
|
||||
NSButton* imageButton = view.openButton;
|
||||
NSRect imageRect = NSIntersectionRect([imageButton convertRect:imageButton.bounds toView:nil], [_outlineView convertRect:_outlineView.visibleRect toView:nil]);
|
||||
return NSEqualSizes(imageRect.size, NSZeroSize) ? NSZeroRect : [self.window convertRectToScreen:imageRect];
|
||||
return NSIsEmptyRect(imageRect) ? NSZeroRect : [self.window convertRectToScreen:imageRect];
|
||||
}
|
||||
}
|
||||
return NSZeroRect;
|
||||
|
||||
Reference in New Issue
Block a user