diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-11 12:21:25 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-11 12:21:25 +0200 |
| commit | 2984fe638cefe617f749950622ee58a31c6b3ca1 (patch) | |
| tree | c8963fd87eace84d693db111d4b4457de8d3b4bc /test/device.cxx | |
| parent | 8d5eed3c82fa6f59c4f9d860f1d5c6bbdd837d80 (diff) | |
Fix for building without print support (GitHub issue #98).
Diffstat (limited to 'test/device.cxx')
| -rw-r--r-- | test/device.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/device.cxx b/test/device.cxx index e922a77cd..e5e827073 100644 --- a/test/device.cxx +++ b/test/device.cxx @@ -643,9 +643,11 @@ void copy(Fl_Widget *, void *data) { wh = target->h(); } Fl_EPS_File_Surface p(ww, wh, eps); - if (target->as_window()) p.draw_decorated_window(target->as_window()); - else p.draw(target); + if (p.file()) { + if (target->as_window()) p.draw_decorated_window(target->as_window()); + else p.draw(target); //p.close(); + } } fclose(eps); } |
