git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-01-28 22:35:48 +00:00
parent 9bcbfae1c9
commit 9780540807

View file

@ -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]))