Source/NSTableView.m

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13325 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Pierre-Yves Rivaille 2002-04-02 19:05:48 +00:00
parent 7b7bc3355f
commit 4e04ce6a1a
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2002-04-02 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
* Source/NSTableView.m ([NSTableView -scrollRowToVisible:]):
Bugfix in getting the visibleRect.
Tue Apr 2 10:28:46 2002 Nicola Pero <n.pero@mi.flashnet.it>
* Source/NSButtonCell.m ([-setSound:]): Retain the sound.

View file

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