From 4e04ce6a1a47f18eaac30e6a9a22e2812240601d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rivaille Date: Tue, 2 Apr 2002 19:05:48 +0000 Subject: [PATCH] Source/NSTableView.m git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13325 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSTableView.m | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 51a420ff2..b200422c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-02 Pierre-Yves Rivaille + + * Source/NSTableView.m ([NSTableView -scrollRowToVisible:]): + Bugfix in getting the visibleRect. + Tue Apr 2 10:28:46 2002 Nicola Pero * Source/NSButtonCell.m ([-setSound:]): Retain the sound. diff --git a/Source/NSTableView.m b/Source/NSTableView.m index 6174980c4..f54839614 100644 --- a/Source/NSTableView.m +++ b/Source/NSTableView.m @@ -5914,9 +5914,8 @@ byExtendingSelection: (BOOL)flag if (_super_view != nil) { NSRect rowRect = [self rectOfRow: rowIndex]; - NSRect visibleRect = [self convertRect: [_super_view bounds] - toView: self]; - + NSRect visibleRect = [self visibleRect]; + // If the row is over the top, or it is partially visible // on top, if ((rowRect.origin.y < visibleRect.origin.y))