Check if an attachment was clicked every time we have attachments, not

only if we import graphics


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11227 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2001-10-23 20:58:11 +00:00
parent 5c3f24d5ac
commit 2fdf56fb71

View file

@ -2064,7 +2064,7 @@ afterString in order over charRange. */
startPoint = [self convertPoint: [theEvent locationInWindow] fromView: nil];
startIndex = [self characterIndexForPoint: startPoint];
if (_tf.imports_graphics == YES)
if ([_textStorage containsAttachments])
{
NSTextAttachment *attachment;