mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
e5bd93c5d8
commit
34266c025a
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue