mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
Source/GSAttributedString.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13136 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e562b12be5
commit
110ec695b4
2 changed files with 10 additions and 18 deletions
|
@ -825,23 +825,8 @@ SANITY();
|
|||
}
|
||||
else
|
||||
{
|
||||
if (arrayIndex != 0)
|
||||
{
|
||||
REMOVEAT(arrayIndex);
|
||||
arraySize--;
|
||||
}
|
||||
else
|
||||
{
|
||||
NSDictionary *d = blank;
|
||||
|
||||
unCacheAttributes(info->attrs);
|
||||
DESTROY(info->attrs);
|
||||
d = cacheAttributes(d);
|
||||
info->attrs = d;
|
||||
/* set location so it will be correct after being modified
|
||||
below */
|
||||
info->loc = NSMaxRange(range);
|
||||
}
|
||||
REMOVEAT(arrayIndex);
|
||||
arraySize--;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -860,7 +845,7 @@ SANITY();
|
|||
&& effectiveRange.length == range.length)
|
||||
{
|
||||
arrayIndex--;
|
||||
if (arrayIndex!=0)
|
||||
if (arrayIndex!=0 || arraySize > 1)
|
||||
{
|
||||
REMOVEAT(arrayIndex);
|
||||
arraySize--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue