mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 07:10:37 +00:00
(-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:
parent
d572689c02
commit
5e0dc13462
2 changed files with 10 additions and 0 deletions
|
@ -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]])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue