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
This commit is contained in:
Manolo Gouy 2011-06-10 13:37:07 +00:00
parent d2e2ed7e2b
commit 0aafa58701
1 changed files with 1 additions and 1 deletions

View File

@ -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 ++;