Fixed tiny bug introduced with last changing.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5032 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-10-18 22:55:51 +00:00
parent cc3f04f070
commit dbceb8126d

View file

@ -358,8 +358,12 @@ static int mouseDownFlags = 0;
mode = aMode;
[self setFrame: frameRect];
/* cellSize = NSMakeSize(DEFAULT_CELL_WIDTH, DEFAULT_CELL_HEIGHT); */
cellSize = NSMakeSize(frameRect.size.width/numCols, frameRect.size.height/numRows);
if ((numCols > 0) && (numRows > 0))
cellSize = NSMakeSize (frameRect.size.width/numCols,
frameRect.size.height/numRows);
else
cellSize = NSMakeSize (DEFAULT_CELL_WIDTH, DEFAULT_CELL_HEIGHT);
intercell = NSMakeSize(1, 1);
[self setBackgroundColor: [NSColor controlBackgroundColor]];
[self setDrawsBackground: YES];