diff options
| author | Manolo Gouy <Manolo> | 2015-02-13 14:18:12 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-02-13 14:18:12 +0000 |
| commit | 0cc3a5247ab9e43dc922816e9b3f0e3696e02cad (patch) | |
| tree | 74d4b34d206a80a85448ea6ad2740714f3b3570b | |
| parent | 24dd515f300b92a48247211589e2f2951b33b14c (diff) | |
Mac OS: fixed order of preference of data type when pasting graphical data.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_cocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 29f871800..def73ffc9 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3494,8 +3494,8 @@ static Fl_Image* get_image_from_clipboard(Fl_Widget *receiver) NSArray *possible = [NSArray arrayWithObjects:@"com.adobe.pdf", @"public.tiff", @"com.apple.pict", nil]; NSString *found = nil; NSUInteger rank; - for (rank = 0; rank < [present count]; rank++) { // find first of possible types present in pasteboard - for (NSUInteger i = 0; i < [possible count]; i++) { + for (NSUInteger i = 0; i < [possible count]; i++) { + for (rank = 0; rank < [present count]; rank++) { // find first of possible types present in pasteboard if ([[present objectAtIndex:rank] isEqualToString:[possible objectAtIndex:i]]) { found = [present objectAtIndex:rank]; goto after_loop; |
