Prevent NSTextView from asking a text storage of zero length

for attributes


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10731 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-08-19 23:28:27 +00:00
parent 3c9b1dc947
commit 08c97488f8
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2001-08-19 Adam Fedor <fedor@gnu.org>
* Source/NSTextView.m (-setSelectedRange:affinity:stillSelecting:):
Prevent NSTextView from asking a text storage of zero length
for attributes (Patch from georg@vhf.de).
2001-08-20 Fred Kiefer <FredKiefer@gmx.de>
* Headers/gnustep/gui/NSMenu.h

View file

@ -1358,7 +1358,7 @@ static NSNotificationCenter *nc;
}
else /* no selection, only insertion point */
{
if (_tf.is_rich_text)
if (_tf.is_rich_text && [_textStorage length])
{
NSDictionary *dict;