mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
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:
parent
c182e9df92
commit
9f1698a4a3
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue