mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Correct previous change
This commit is contained in:
parent
553d81071d
commit
fe50e9f40a
1 changed files with 12 additions and 0 deletions
|
@ -6110,6 +6110,18 @@ configuation! */
|
|||
|
||||
- (BOOL) shouldReplaceCharactersInRanges: (NSArray *)ranges withStrings: (NSArray *)strings
|
||||
{
|
||||
NSUInteger idx = 0;
|
||||
FOR_IN(NSValue*, rv, ranges)
|
||||
{
|
||||
NSRange r = [rv rangeValue];
|
||||
NSString *str = [strings objectAtIndex: idx];
|
||||
if (![self shouldChangeTextInRange: r replacementString: str])
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
END_FOR_IN(ranges);
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue