mirror of https://github.com/fltk/fltk
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:
parent
d2e2ed7e2b
commit
0aafa58701
|
@ -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 ++;
|
||||
|
|
Loading…
Reference in New Issue