mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 06:20:59 +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
da4d1b4efd
commit
b2c4f49fc3
1 changed files with 6 additions and 2 deletions
|
@ -358,8 +358,12 @@ static int mouseDownFlags = 0;
|
||||||
mode = aMode;
|
mode = aMode;
|
||||||
[self setFrame: frameRect];
|
[self setFrame: frameRect];
|
||||||
|
|
||||||
/* cellSize = NSMakeSize(DEFAULT_CELL_WIDTH, DEFAULT_CELL_HEIGHT); */
|
if ((numCols > 0) && (numRows > 0))
|
||||||
cellSize = NSMakeSize(frameRect.size.width/numCols, frameRect.size.height/numRows);
|
cellSize = NSMakeSize (frameRect.size.width/numCols,
|
||||||
|
frameRect.size.height/numRows);
|
||||||
|
else
|
||||||
|
cellSize = NSMakeSize (DEFAULT_CELL_WIDTH, DEFAULT_CELL_HEIGHT);
|
||||||
|
|
||||||
intercell = NSMakeSize(1, 1);
|
intercell = NSMakeSize(1, 1);
|
||||||
[self setBackgroundColor: [NSColor controlBackgroundColor]];
|
[self setBackgroundColor: [NSColor controlBackgroundColor]];
|
||||||
[self setDrawsBackground: YES];
|
[self setDrawsBackground: YES];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue