Source/NSTableHeaderView.m

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13192 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
pyr 2002-03-21 23:51:39 +00:00
parent 56b8763506
commit e878c4983e
2 changed files with 5 additions and 8 deletions

View file

@ -5,6 +5,8 @@
rowIndex == _numberOfRows was not catched as invalid. rowIndex == _numberOfRows was not catched as invalid.
* Source/NSTableView.m ([NSTableView -draggingUpdated:sender]): * Source/NSTableView.m ([NSTableView -draggingUpdated:sender]):
Less NSLog. Less NSLog.
* Source/NSTableHeaderView.m ([NSTableHeaderView -mouseDown:]):
fixed drawing issue.
2002-03-21 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr> 2002-03-21 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>

View file

@ -373,6 +373,7 @@
column = [columns objectAtIndex: _resizedColumn]; column = [columns objectAtIndex: _resizedColumn];
if ([column isResizable] == NO) if ([column isResizable] == NO)
{ {
_resizedColumn = -1;
return; return;
} }
/* We use p as a temporary variable for a while */ /* We use p as a temporary variable for a while */
@ -741,10 +742,7 @@
[_tableView _didClickTableColumn: [_tableView _didClickTableColumn:
currentColumn]; currentColumn];
[self lockFocus]; [self setNeedsDisplay: YES];;
[self drawRect: [self headerRectOfColumn: columnIndex]];
[self unlockFocus];
[_window flushWindow];
} }
else // mouseDragged == YES else // mouseDragged == YES
{ {
@ -827,10 +825,7 @@
[_tableView _didClickTableColumn: [_tableView _didClickTableColumn:
currentColumn]; currentColumn];
[self lockFocus]; [self setNeedsDisplay: YES];
[self drawRect: [self headerRectOfColumn: columnIndex]];
[self unlockFocus];
[_window flushWindow];
/* /*
if ([_tableView highlightedTableColumn] != currentColumn) if ([_tableView highlightedTableColumn] != currentColumn)
{ {