Fix badly placed #endif

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5269 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-11-24 16:54:23 +00:00
parent 95dc98cfed
commit a569f85d44
2 changed files with 59 additions and 55 deletions

View file

@ -1,3 +1,7 @@
Wed Nov 24 16:58:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSMenuView.m: ([-sizeTofit]) oops - fixed error in last mod.
Wed Nov 24 1999 Nicola Pero <n.pero@mi.flashnet.it>
The three new autolayout classes; code extremely stable, API

View file

@ -394,8 +394,8 @@ static float GSMenuBarHeight = 25.0; // A wild guess.
- (void) sizeToFit
{
int i;
int howMany = [menuv_itemCells count];
unsigned i;
unsigned howMany = [menuv_itemCells count];
float howHigh = (howMany * cellSize.height);
float neededImageAndTitleWidth = [[NSFont boldSystemFontOfSize: 12]
widthOfString: [menuv_menu title]] + 17;
@ -474,8 +474,8 @@ static float GSMenuBarHeight = 25.0; // A wild guess.
// Calculate frame size.
#if 0
if (![menuv_menu _isBeholdenToPopUpButton])
cellSize.width = accumulatedOffset + 3; // Add the border width
#endif
cellSize.width = accumulatedOffset + 3; // Add the border width
[self setFrameSize: NSMakeSize(cellSize.width + 1, howHigh)];