* Source/NSTableView.m (-mouseDown:): Check for empty selection.

when adding to the current selection. Fixes bug #15261.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23945 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-10-22 18:26:31 +00:00
parent a197607128
commit 36e68226f8
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-10-22 Matt Rice <ratmice@yahoo.com>
* Source/NSTableView.m (-mouseDown:): Check for empty selection.
when adding to the current selection. Fixes bug #15261.
2006-10-21 Matt Rice <ratmice@yahoo.com>
* Headers/AppKit/NSGraphics.h: Add GSOrderedWindows function.

View file

@ -3445,7 +3445,7 @@ static inline float computePeriod(NSPoint mouseLocationWin,
if (modifiers & NSControlKeyMask)
{
selectionMode |= CONTROL_DOWN;
if (_allowsMultipleSelection == YES)
if (_allowsMultipleSelection == YES && _selectedRow != -1)
{
originalRow = _selectedRow;
selectionMode |= SHIFT_DOWN;