From 161bdb8973eda6489864059a918f244af72f32fc Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 19 Jan 2013 14:07:34 +0000 Subject: Mac OS: fixed a crash when printing window with OS 10.5 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 25050d3b7..060fa6e08 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3521,7 +3521,7 @@ CGImageRef Fl_X::CGImage_from_window_rect(Fl_Window *win, int x, int y, int w, i // CFRelease the returned CGImageRef after use { CGImageRef img; - if (fl_mac_os_version >= 100500) { + if (fl_mac_os_version >= 100600) { // crashes with 10.5 NSBitmapImageRep *bitmap = rect_to_NSBitmapImageRep(win, x, y, w, h); img = (CGImageRef)[bitmap performSelector:@selector(CGImage)]; // requires Mac OS 10.5 CGImageRetain(img); -- cgit v1.2.3