(-readSelectionFromPasteboard:type:, NSTIFFPboardType): Send -setFileWrapper: to the attachment after setting the wrapper's icon.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18259 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-12-23 17:13:39 +00:00
parent d572689c02
commit 5e0dc13462
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2003-12-06 14:03 Alexander Malmberg <alexander@malmberg.org>
* Source/NSTextView.m (-readSelectionFromPasteboard:type:,
NSTIFFPboardType): Send -setFileWrapper: to the attachment after
setting the wrapper's icon to force an update of the attachment's
image. Reported by Fabien Vallon.
2003-12-03 02:54 Alexander Malmberg <alexander@malmberg.org>
* Source/GNUmakefile.postamble (after-clean): Add a missing ':'.

View file

@ -3576,6 +3576,9 @@ right.)
NSAttributedString *as = [NSAttributedString attributedStringWithAttachment: attachment];
[wrapper setIcon: image];
/* We changed the wrapper's icon. Reset the attachment to force
an update of the attachment's cell's image. */
[attachment setFileWrapper: wrapper];
if ([self shouldChangeTextInRange: changeRange
replacementString: [as string]])
{