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:
richard 2000-12-18 19:29:49 +00:00
parent 8a29fed355
commit fb6e74170f

View file

@ -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);