[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSMatrix -selectAll: shouldn't do anything in matrix mode [patch]
From: |
Jeff Teunissen |
Subject: |
NSMatrix -selectAll: shouldn't do anything in matrix mode [patch] |
Date: |
Fri, 05 Jul 2002 15:56:29 -0400 |
NSMatrix shouldn't be able to select all cells if it's in
NSRadioModeMatrix mode. Trivial fix attached.
--
| Jeff Teunissen -=- Pres., Dusk To Dawn Computing -=- deek @ d2dc.net
| GPG: 1024D/9840105A 7102 808A 7733 C2F3 097B 161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project http://www.quakeforge.net/
| Specializing in Debian GNU/Linux http://www.d2dc.net/~deek/
Index: gui/Source/NSMatrix.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSMatrix.m,v
retrieving revision 1.99
diff -u -r1.99 NSMatrix.m
--- gui/Source/NSMatrix.m 26 Jun 2002 17:00:33 -0000 1.99
+++ gui/Source/NSMatrix.m 5 Jul 2002 19:56:06 -0000
@@ -975,6 +975,9 @@
{
unsigned i, j;
+ if (_mode == NSRadioModeMatrix) // can't select all if only one can be
selected
+ return;
+
_selectedCell = nil;
_selectedRow = -1;
_selectedColumn = -1;
- NSMatrix -selectAll: shouldn't do anything in matrix mode [patch],
Jeff Teunissen <=