Tidied a little

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5170 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-11-12 15:41:32 +00:00
parent 092f597b8d
commit a89fe7b785

View file

@ -2226,7 +2226,7 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- ");
SEL mkSel = @selector(makeCellAtRow:column:); SEL mkSel = @selector(makeCellAtRow:column:);
IMP mkImp = [self methodForSelector: mkSel]; IMP mkImp = [self methodForSelector: mkSel];
NSLog(@"mr: %d mc:%d nr:%d nc:%d r:%d c:%d", maxRows, maxCols, numRows, numCols, row, col); //NSLog(@"%x - mr: %d mc:%d nr:%d nc:%d r:%d c:%d", (unsigned)self, maxRows, maxCols, numRows, numCols, row, col);
if (row < 0) if (row < 0)
{ {
#if STRICT == 0 #if STRICT == 0
@ -2256,11 +2256,13 @@ NSLog(@"mr: %d mc:%d nr:%d nc:%d r:%d c:%d", maxRows, maxCols, numRows, numCols,
* putCell:atRow:column: to implement it, and that checks bounds. * putCell:atRow:column: to implement it, and that checks bounds.
*/ */
oldMaxC = maxCols; oldMaxC = maxCols;
maxCols = col;
numCols = col; numCols = col;
if (col > maxCols)
maxCols = col;
oldMaxR = maxRows; oldMaxR = maxRows;
maxRows = row;
numRows = row; numRows = row;
if (row > maxRows)
maxRows = row;
if (col > oldMaxC) if (col > oldMaxC)
{ {
@ -2331,7 +2333,7 @@ NSLog(@"mr: %d mc:%d nr:%d nc:%d r:%d c:%d", maxRows, maxCols, numRows, numCols,
} }
[self deselectAllCells]; [self deselectAllCells];
NSLog(@"end mr: %d mc:%d nr:%d nc:%d r:%d c:%d", maxRows, maxCols, numRows, numCols, row, col); //NSLog(@"%x - end mr: %d mc:%d nr:%d nc:%d r:%d c:%d", (unsigned)self, maxRows, maxCols, numRows, numCols, row, col);
} }
- (void) _setState: (int)state - (void) _setState: (int)state