mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
Better check for click on table column border.
Allow table column identifier to be nil. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26482 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a92da16be5
commit
676eb09e4f
4 changed files with 78 additions and 40 deletions
|
@ -2231,10 +2231,12 @@ static void computeNewSelection
|
|||
|
||||
while ((tb = [enumerator nextObject]) != nil)
|
||||
{
|
||||
if ([[tb identifier] isEqual: identifier])
|
||||
return return_value;
|
||||
// Also handle a nil identifier.
|
||||
if ((identifier == [tb identifier]) ||
|
||||
[[tb identifier] isEqual: identifier])
|
||||
return return_value;
|
||||
else
|
||||
return_value++;
|
||||
return_value++;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue