Author: manolo
Date: 2013-01-19 06:07:34 -0800 (Sat, 19 Jan 2013)
New Revision: 9804
Log:
Mac OS: fixed a crash when printing window with OS 10.5
Modified:
branches/branch-1.3/src/Fl_cocoa.mm
Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2013-01-19 09:49:33 UTC (rev 9803)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2013-01-19 14:07:34 UTC (rev 9804)
@@ -3521,7 +3521,7 @@
// 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);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit