bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix, GSTextStorage, replaceCharactersInRange:withString:


From: Richard Frith-Macdonald
Subject: Re: Fix, GSTextStorage, replaceCharactersInRange:withString:
Date: Mon, 23 Apr 2001 10:31:57 +0100

On Sunday, April 22, 2001, at 08:47 PM, Georg Fleischmann wrote:

Hi,

here is a fix for GSTextStorage (snapshot from 2001-04-19).
The patch fixes a problem when replacing a range with a string of zero length: It recalculates the effective range to match the modified set of attributes
before comparing with the effective range.
If this is not done and there were more than one attribute in the range which is being replaced, the (old) effective range wouldn't match the range being
replaced, and a range of zero length would remain...

Thanks - I applied your fix, and updated the NSAttributedString code also.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]