mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 18:45:52 +08:00
Fixes in Plater::convert_gcode_to_ascii() and Plater::convert_gcode_to_binary()
This commit is contained in:
parent
5deb4470c7
commit
7b822184a7
@ -5440,6 +5440,8 @@ void Plater::convert_gcode_to_ascii()
|
||||
// Ask user for a gcode file name.
|
||||
wxString input_file;
|
||||
wxGetApp().load_gcode(this, input_file);
|
||||
if (input_file.empty())
|
||||
return;
|
||||
|
||||
// Open source file
|
||||
FilePtr in_file{ boost::nowide::fopen(into_u8(input_file).c_str(), "rb") };
|
||||
@ -5483,6 +5485,8 @@ void Plater::convert_gcode_to_binary()
|
||||
// Ask user for a gcode file name.
|
||||
wxString input_file;
|
||||
wxGetApp().load_gcode(this, input_file);
|
||||
if (input_file.empty())
|
||||
return;
|
||||
|
||||
// Open source file
|
||||
FilePtr in_file{ boost::nowide::fopen(into_u8(input_file).c_str(), "rb") };
|
||||
|
Loading…
x
Reference in New Issue
Block a user