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:
fredkiefer 2011-07-08 22:52:35 +00:00
parent 2e6758ea70
commit b1ec69532d

View file

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