mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
cc3f04f070
commit
dbceb8126d
1 changed files with 6 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue