mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 01:50:48 +00:00
A few text storage bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8585 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4c1560cf55
commit
4d25305e2e
2 changed files with 16 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2001-01-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/GSTextStorage.m: Fixed bug initialising from an
|
||||||
|
empty attributed string, and fixed bug replacing characters in
|
||||||
|
range, when an attribute range location is the same s the location
|
||||||
|
of the replaced characters.
|
||||||
|
|
||||||
Sat Jan 13 12:24:55 2001 Nicola Pero <n.pero@mi.flashnet.it>
|
Sat Jan 13 12:24:55 2001 Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
|
|
||||||
* Source/NSApplication.m (_NSAppKitUncaughtExceptionHandler):
|
* Source/NSApplication.m (_NSAppKitUncaughtExceptionHandler):
|
||||||
|
|
|
@ -278,10 +278,14 @@ _setAttributesFrom(
|
||||||
[_infoArray removeAllObjects];
|
[_infoArray removeAllObjects];
|
||||||
|
|
||||||
if (aRange.length <= 0)
|
if (aRange.length <= 0)
|
||||||
return;
|
{
|
||||||
|
attr = [NSDictionary dictionary];
|
||||||
attr = [attributedString attributesAtIndex: aRange.location
|
}
|
||||||
effectiveRange: &range];
|
else
|
||||||
|
{
|
||||||
|
attr = [attributedString attributesAtIndex: aRange.location
|
||||||
|
effectiveRange: &range];
|
||||||
|
}
|
||||||
attr = cacheAttributes(attr);
|
attr = cacheAttributes(attr);
|
||||||
info = NEWINFO(z, attr, 0);
|
info = NEWINFO(z, attr, 0);
|
||||||
ADDOBJECT(info);
|
ADDOBJECT(info);
|
||||||
|
@ -731,11 +735,11 @@ SANITY();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
info->loc = NSMaxRange(range);
|
info->loc = NSMaxRange(range);
|
||||||
SANITY();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
moveLocations = [aString length] - range.length;
|
moveLocations = [aString length] - range.length;
|
||||||
if (effectiveRange.location == range.location
|
if (effectiveRange.location == range.location
|
||||||
|
&& effectiveRange.length == range.length
|
||||||
&& (moveLocations + range.length) == 0)
|
&& (moveLocations + range.length) == 0)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -748,7 +752,6 @@ SANITY();
|
||||||
arraySize--;
|
arraySize--;
|
||||||
}
|
}
|
||||||
|
|
||||||
SANITY();
|
|
||||||
/*
|
/*
|
||||||
* Now adjust the positions of the ranges following the one we are using.
|
* Now adjust the positions of the ranges following the one we are using.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue