mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
Fix logic error in attribute handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8358 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8a29fed355
commit
fb6e74170f
1 changed files with 2 additions and 2 deletions
|
@ -611,10 +611,10 @@ SANITY();
|
|||
info->loc = afterRangeLoc;
|
||||
arrayIndex--;
|
||||
}
|
||||
else if (effectiveRange.location < beginRangeLoc)
|
||||
else if (NSMaxRange(effectiveRange) > afterRangeLoc)
|
||||
{
|
||||
/*
|
||||
* The located range starts before our range.
|
||||
* The located range ends after our range.
|
||||
* Create a subrange to go from our end to the end of the old range.
|
||||
*/
|
||||
info = NEWINFO(z, cacheAttributes(attrs), afterRangeLoc);
|
||||
|
|
Loading…
Reference in a new issue