diff options
| author | Manolo Gouy <Manolo> | 2013-01-19 14:07:34 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2013-01-19 14:07:34 +0000 |
| commit | 161bdb8973eda6489864059a918f244af72f32fc (patch) | |
| tree | 60047e4b1e0cd31c728080cdfbd1843e49d218f0 | |
| parent | 511c14e47d9312cd263a849ed6e0b442d1e58b0e (diff) | |
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
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
