mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:10:38 +00:00
* Source/NSTableView.m (-mouseDown:): Fix the check that detects
when an unselected row is being dragged. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20115 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
11fef998fe
commit
d3f517e16b
2 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-09-23 22:33 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSTableView.m (-mouseDown:): Fix the check that detects
|
||||
when an unselected row is being dragged.
|
||||
|
||||
2004-09-23 18:01 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Printing/GSLPR/GSLPRPrintOperation.m (-createContext): Always use
|
||||
|
|
|
@ -1896,7 +1896,7 @@ _isCellEditable (id delegate, NSArray *tableColumns,
|
|||
row: row] == NO)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return YES;
|
||||
|
@ -3587,8 +3587,7 @@ static inline float computePeriod(NSPoint mouseLocationWin,
|
|||
{
|
||||
draggingPossible = NO;
|
||||
}
|
||||
else if (mouseLocationWin.x - initialLocation.x >= 4
|
||||
|| mouseLocationWin.x - initialLocation.x <= -4)
|
||||
else if (fabs(mouseLocationWin.x - initialLocation.x) >= 4)
|
||||
{
|
||||
NSPasteboard *pboard;
|
||||
NSArray *rows;
|
||||
|
@ -3596,7 +3595,7 @@ static inline float computePeriod(NSPoint mouseLocationWin,
|
|||
mouseLocationView.x = _bounds.origin.x;
|
||||
oldRow = currentRow;
|
||||
currentRow = [self rowAtPoint: mouseLocationView];
|
||||
if (oldRow != currentRow)
|
||||
if (![_selectedRows containsIndex: currentRow])
|
||||
{
|
||||
/* Mouse drag in a row that wasn't selected.
|
||||
select the new row before dragging */
|
||||
|
@ -3608,7 +3607,6 @@ static inline float computePeriod(NSPoint mouseLocationWin,
|
|||
currentRow,
|
||||
&_selectedRow,
|
||||
selectionMode);
|
||||
|
||||
}
|
||||
|
||||
rows = [self _selectedRowArray];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue