From 0d594319c1f423679c7e7cd712003921da103c70 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 3 Nov 2020 18:05:10 +0100 Subject: 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. --- test/device.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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()); } } } -- cgit v1.2.3