mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Add constraints when they are created
This commit is contained in:
parent
2c8692c379
commit
af2319d26e
1 changed files with 3 additions and 0 deletions
|
@ -228,6 +228,8 @@ static NSMutableArray *activeConstraints;
|
|||
_relation = relation;
|
||||
_multiplier = multiplier;
|
||||
_constant = constant;
|
||||
|
||||
[activeConstraints addObject: self];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
@ -249,6 +251,7 @@ static NSMutableArray *activeConstraints;
|
|||
attribute: attr2
|
||||
multiplier: mult
|
||||
constant: c];
|
||||
|
||||
AUTORELEASE(constraint);
|
||||
return constraint;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue