summaryrefslogtreecommitdiff
path: root/test/device.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-03 18:05:10 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-03 18:05:18 +0100
commit0d594319c1f423679c7e7cd712003921da103c70 (patch)
treeecdc31a39baa10de21cef5c0fcb95b5e1a1a9142 /test/device.cxx
parent5132bb6a062b68be8f0e9e84fb5ae979ab613ea5 (diff)
Add extra argument to Fl_SVG_File_Surface constructor.
This makes processing of the underlying FILE object consistant by classes Fl_SVG_File_Surface, Fl_EPS_File_Surface and Fl_PostScript_File_Surface.
Diffstat (limited to 'test/device.cxx')
-rw-r--r--test/device.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/device.cxx b/test/device.cxx
index 8b04e53d2..518612c61 100644
--- a/test/device.cxx
+++ b/test/device.cxx
@@ -677,7 +677,7 @@ void copy(Fl_Widget *, void *data) {
if (surface.file()) {
if (target->as_window()) surface.draw_decorated_window(target->as_window());
else surface.draw(target);
- surface.close();
+ if (surface.close()) fl_message("Error while writing to SVG file %s", fnfc.filename());
}
}
}