mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:10:38 +00:00
Small keyed decoing improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29963 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
93e1163bde
commit
60daf66eb6
5 changed files with 24 additions and 11 deletions
|
@ -4518,7 +4518,9 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
|||
NSArray *subs;
|
||||
|
||||
// decode the superclass...
|
||||
[super initWithCoder: aDecoder];
|
||||
self = [super initWithCoder: aDecoder];
|
||||
if (!self)
|
||||
return nil;
|
||||
|
||||
// initialize these here, since they're needed in either case.
|
||||
// _frameMatrix = [NSAffineTransform new]; // Map fromsuperview to frame
|
||||
|
@ -4545,14 +4547,11 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
|||
}
|
||||
|
||||
// Set bounds rectangle
|
||||
_bounds.origin = NSZeroPoint;
|
||||
_bounds.size = _frame.size;
|
||||
if ([aDecoder containsValueForKey: @"NSBounds"])
|
||||
{
|
||||
_bounds = [aDecoder decodeRectForKey: @"NSBounds"];
|
||||
}
|
||||
else
|
||||
{
|
||||
_bounds.origin = NSZeroPoint;
|
||||
_bounds.size = _frame.size;
|
||||
[self setBounds: [aDecoder decodeRectForKey: @"NSBounds"]];
|
||||
}
|
||||
|
||||
_sub_views = [NSMutableArray new];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue