mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:00:37 +00:00
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:
parent
3c9b1dc947
commit
08c97488f8
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue