Follow-up of 573194e059 -> Fixed crash when opening a gcode file

This commit is contained in:
enricoturri1966 2020-09-07 11:30:31 +02:00
parent 014a90b51b
commit 8579184d70
2 changed files with 9 additions and 6 deletions
src/libslic3r/GCode

View file

@ -420,7 +420,7 @@ namespace Slic3r {
// Process the gcode contained in the file with the given filename
// throws CanceledException through print->throw_if_canceled() (sent by the caller as callback).
void process_file(const std::string& filename, std::function<void()> cancel_callback = std::function<void()>());
void process_file(const std::string& filename, std::function<void()> cancel_callback = nullptr);
float get_time(PrintEstimatedTimeStatistics::ETimeMode mode) const;
std::string get_time_dhm(PrintEstimatedTimeStatistics::ETimeMode mode) const;