From 0cc3a5247ab9e43dc922816e9b3f0e3696e02cad Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 13 Feb 2015 14:18:12 +0000 Subject: 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 --- src/Fl_cocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3