git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8687 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2001-01-18 23:04:04 +00:00
parent a5737b792a
commit eef7a28d19
2 changed files with 14 additions and 6 deletions

View file

@ -3120,12 +3120,18 @@ other than copy/paste or dragging. */
return;
[_textStorage beginEditing];
if (_tf.is_rich_text)
[_textStorage replaceCharactersInRange: aRange
withAttributedString: attrString];
{
[_textStorage replaceCharactersInRange: aRange
withAttributedString: attrString];
}
else
[_textStorage replaceCharactersInRange: aRange
withString: [attrString string]];
{
[_textStorage replaceCharactersInRange: aRange
withString: [attrString string]];
}
[_textStorage endEditing];
[self didChangeText];
}