From 6e283f6914431d6ee077137fd8d955493450fcee Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 24 Feb 2018 20:36:08 -0600 Subject: [PATCH] Flush the output buffer when writing svg files from PrintSLA.cpp. Fixes #4311 --- xs/src/libslic3r/SLAPrint.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xs/src/libslic3r/SLAPrint.cpp b/xs/src/libslic3r/SLAPrint.cpp index c15c928a4..a4062c701 100644 --- a/xs/src/libslic3r/SLAPrint.cpp +++ b/xs/src/libslic3r/SLAPrint.cpp @@ -297,6 +297,8 @@ SLAPrint::write_svg(const std::string &outputfile) const fprintf(f,"\t\n"); } fprintf(f,"\n"); + // Ensure that the output gets written. + fflush(f); } coordf_t