mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 23:31:02 +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
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue