diff --git a/src/libslic3r/GCode.hpp b/src/libslic3r/GCode.hpp index b990c5e50..c6f3844ac 100644 --- a/src/libslic3r/GCode.hpp +++ b/src/libslic3r/GCode.hpp @@ -465,7 +465,7 @@ private: #endif // ENABLE_GCODE_VIEWER // Write a string into a file. - void _write(FILE* file, const std::string& what, bool flush = false) { this->_write(file, what.c_str()); } + void _write(FILE* file, const std::string& what, bool flush = false) { this->_write(file, what.c_str(), flush); } void _write(FILE* file, const char *what, bool flush = false); // Write a string into a file. diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index e0c109962..bd8664e61 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -812,11 +812,16 @@ void GCodeProcessor::process_file(const std::string& filename, std::function