mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Source/GSTextStorage.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13137 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
843cbe9845
commit
ea90c6a692
2 changed files with 7 additions and 18 deletions
|
@ -1,5 +1,9 @@
|
|||
2002-03-17 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||
|
||||
* Source/GSTextStorage.m
|
||||
([GSTextStorage -replaceCharactersInRange:withString:]):
|
||||
Only keep attribute #0 when removing it would remove all attributes.
|
||||
(patch by Alexander Malmberg)
|
||||
* Source/NSTableView.m ([NSTableView -deselectAll:]):
|
||||
Fix bug.
|
||||
* Source/NSTableView.m : initial drag'n'drop support.
|
||||
|
|
|
@ -751,23 +751,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--;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -786,7 +771,7 @@ SANITY();
|
|||
&& effectiveRange.length == range.length)
|
||||
{
|
||||
arrayIndex--;
|
||||
if (arrayIndex != 0)
|
||||
if (arrayIndex != 0 || arraySize > 1)
|
||||
{
|
||||
REMOVEAT(arrayIndex);
|
||||
arraySize--;
|
||||
|
|
Loading…
Reference in a new issue