From 0aafa5870150d73633d88dd87bc41720630343d5 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 10 Jun 2011 13:37:07 +0000 Subject: Fix STR #2661: fluid may crash when printing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/fluid.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 32faa0736..4ad1cb7eb 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -1260,7 +1260,7 @@ void print_cb(Fl_Return_Button *, void *) { 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 ++; -- cgit v1.2.3