mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
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:
parent
21542d5c9c
commit
d71411ee44
2 changed files with 7 additions and 20 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-02-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSMatrix.m (cellFrameAtRow:column:, drawRect:,
|
||||
getRow:column:forPoint:): Removed special handling for non-flipped
|
||||
case. Patch by Andreas Höschler <ahoesch@smartsoft.de>.
|
||||
|
||||
2007-02-18 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSDocument.m (runModalSavePanel:withAccessoryView:): Only
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue