Also close the file when we're done writing to it.

This commit is contained in:
Joseph Lenox 2018-02-24 20:38:22 -06:00
parent 6e283f6914
commit 976bb5518e

View File

@ -299,6 +299,9 @@ SLAPrint::write_svg(const std::string &outputfile) const
fprintf(f,"</svg>\n"); fprintf(f,"</svg>\n");
// Ensure that the output gets written. // Ensure that the output gets written.
fflush(f); fflush(f);
// Close the file.
fclose(f);
} }
coordf_t coordf_t