Author: manolo
Date: 2010-04-07 00:44:04 -0700 (Wed, 07 Apr 2010)
New Revision: 7463
Log:
Fixed incorrect use of bounds() outside of __APPLE__

Modified:
   branches/branch-1.3-Fl_Printer/src/Fl_Clipboard_Writer.cxx

Modified: branches/branch-1.3-Fl_Printer/src/Fl_Clipboard_Writer.cxx
===================================================================
--- branches/branch-1.3-Fl_Printer/src/Fl_Clipboard_Writer.cxx  2010-04-06 
23:00:56 UTC (rev 7462)
+++ branches/branch-1.3-Fl_Printer/src/Fl_Clipboard_Writer.cxx  2010-04-07 
07:44:04 UTC (rev 7463)
@@ -79,15 +79,20 @@
      Fl_Plugin_Manager pm("fltk:device");  
      Fl_Device_Plugin *pi = 
(Fl_Device_Plugin*)pm.plugin("opengl.device.fltk.org");
      if (pi) {
-       int width, height;
+       int height = 0;
+#ifdef __APPLE__
+       int width;
        this->bounds(&width, &height);
+#endif
        drawn_by_plugin = pi->print(widget, 0, 0, height);
        }
   }
   if (!drawn_by_plugin) {
     widget->draw();
   }
+#ifndef WIN32
   if (is_window) fl_pop_clip();
+#endif
   // find subwindows of widget and print them
   traverse(widget);
   // reset origin to where it was

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to