removed C99-ism

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27442 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2008-12-28 15:05:47 +00:00
parent c182e9df92
commit 9f1698a4a3
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2008-12-28 Riccardo Mottola <rmottola@users.sf.net>
* Source/NSClipView.m: removed C99-ism
2008-12-28 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSApplication.m: Add tiny bit of diagnostic logging for

View file

@ -791,11 +791,13 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
if ([[self subviews] count] > 0)
{
NSRect rect;
id document = [aDecoder decodeObjectForKey: @"NSDocView"];
NSAssert([document class] != [NSCustomView class],
NSInvalidArgumentException);
NSRect rect = [document frame];
rect = [document frame];
rect.origin = NSZeroPoint;
[document setFrame: rect];
RETAIN(document); // prevent it from being released.