Declare variable at begin of method to allow compilation with older

compilers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33493 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-07-08 22:52:35 +00:00
parent e5bd93c5d8
commit 34266c025a

View file

@ -2015,8 +2015,9 @@ static void autoresize(CGFloat oldContainerSize,
- (void) resizeWithOldSuperviewSize: (NSSize)oldSize
{
NSSize superViewFrameSize;
NSRect newFrame = _frame;
NSSize superViewFrameSize;
NSRect newFrame = _frame;
NSRect newFrameRounded;
if (_autoresizingMask == NSViewNotSizable)
return;
@ -2053,7 +2054,7 @@ static void autoresize(CGFloat oldContainerSize,
flipped ? (_autoresizingMask & NSViewMinYMargin) : (_autoresizingMask & NSViewMaxYMargin));
}
NSRect newFrameRounded = newFrame;
newFrameRounded = newFrame;
/**
* Perform rounding to pixel-align the frame if we are not rotated