Author: manolo
Date: 2011-06-10 06:37:07 -0700 (Fri, 10 Jun 2011)
New Revision: 8801
Log:
Fix STR #2661: fluid may crash when printing.
Modified:
branches/branch-1.3/fluid/fluid.cxx
Modified: branches/branch-1.3/fluid/fluid.cxx
===================================================================
--- branches/branch-1.3/fluid/fluid.cxx 2011-06-10 06:50:46 UTC (rev 8800)
+++ branches/branch-1.3/fluid/fluid.cxx 2011-06-10 13:37:07 UTC (rev 8801)
@@ -1260,7 +1260,7 @@
if (t->is_window()) {
winpage ++;
windows[num_windows] = (Fl_Window_Type *)t;
-
+ if (!((Fl_Window*)(windows[num_windows]->o))->shown()) continue;
if (print_all->value()) num_windows ++;
else if (print_pages->value() && winpage >= first &&
winpage <= last) num_windows ++;
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit