mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9bcbfae1c9
commit
9780540807
1 changed files with 13 additions and 6 deletions
|
@ -319,8 +319,10 @@
|
|||
NSRect rect;
|
||||
|
||||
if (_documentView == nil)
|
||||
return _bounds;
|
||||
|
||||
{
|
||||
return _bounds;
|
||||
}
|
||||
|
||||
documentFrame = [_documentView frame];
|
||||
clipViewBounds = _bounds;
|
||||
rect.origin = documentFrame.origin;
|
||||
|
@ -337,7 +339,9 @@
|
|||
NSRect rect;
|
||||
|
||||
if (_documentView == nil)
|
||||
return NSZeroRect;
|
||||
{
|
||||
return NSZeroRect;
|
||||
}
|
||||
|
||||
documentBounds = [_documentView bounds];
|
||||
clipViewBounds = [self convertRect: _bounds toView: _documentView];
|
||||
|
@ -360,9 +364,12 @@
|
|||
NSPoint new;
|
||||
|
||||
if (_documentView == nil)
|
||||
return NO;
|
||||
|
||||
new = [_documentView convertPoint: [theEvent locationInWindow] fromView: nil];
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
new = [_documentView convertPoint: [theEvent locationInWindow]
|
||||
fromView: nil];
|
||||
new = [self constrainScrollPoint: new];
|
||||
|
||||
if (NSPointInRect(new, [self documentVisibleRect]))
|
||||
|
|
Loading…
Reference in a new issue