No special handling for non-flipped subclasses.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24654 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-02-19 16:51:25 +00:00
parent e1b4f3a31c
commit 370b89a054
2 changed files with 7 additions and 20 deletions

View file

@ -669,15 +669,7 @@ static SEL getSel;
NSRect rect;
rect.origin.x = column * (_cellSize.width + _intercell.width);
if (_rFlags.flipped_view)
{
rect.origin.y = row * (_cellSize.height + _intercell.height);
}
else
{
rect.origin.y = (_numRows - row - 1)
* (_cellSize.height + _intercell.height);
}
rect.origin.y = row * (_cellSize.height + _intercell.height);
rect.size = _cellSize;
return rect;
}
@ -959,11 +951,6 @@ static SEL getSel;
if (row)
{
if (_rFlags.flipped_view == NO)
{
approxRow = _numRows - approxRow - 1;
}
if (approxRow < 0)
{
approxRow = 0;
@ -2025,12 +2012,6 @@ static SEL getSel;
row2 = NSMaxY(rect) / (_cellSize.height + _intercell.height);
col2 = NSMaxX(rect) / (_cellSize.width + _intercell.width);
if (_rFlags.flipped_view == NO)
{
row1 = _numRows - row1 - 1;
row2 = _numRows - row2 - 1;
}
if (row1 < 0)
row1 = 0;
else if (row1 >= _numRows)