FIX:Fix the crash that occurred when importing G-code file

Jira:STUDIO-13408

(cherry picked from commit 3810f4edfe086b9500860e59baf35e5568b56977)
This commit is contained in:
weizhen.xie
2025-07-16 23:12:31 +08:00
committed by Noisyfox
parent 95323f2692
commit 4387601fed
7 changed files with 27 additions and 1 deletions

View File

@@ -162,6 +162,11 @@ public:
float& j() { return m_position[J]; }
float j() const { return m_position[J]; }
GCodeConfig get_config() const
{
return m_config;
}
private:
template<typename ParseLineCallback, typename LineEndCallback>
bool parse_file_raw_internal(const std::string &filename, ParseLineCallback parse_line_callback, LineEndCallback line_end_callback);