From e9f5fe627be83f269a902daf410bea64e6bf8658 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Tue, 23 Oct 2001 20:58:11 +0000 Subject: [PATCH] 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 --- Source/NSTextView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSTextView.m b/Source/NSTextView.m index 9df3a9696..99421f984 100644 --- a/Source/NSTextView.m +++ b/Source/NSTextView.m @@ -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;