Fixed crash in tests

This commit is contained in:
Lukas Matena 2025-02-04 10:53:09 +01:00
parent bb4ac17c90
commit 00f3083bf6

View File

@ -1001,7 +1001,8 @@ std::string Print::export_gcode(const std::string& path_template, GCodeProcessor
if (m_conflict_result.has_value())
result->conflict_result = *m_conflict_result;
result->sequential_collision_detected = m_sequential_collision_detected;
if (result)
result->sequential_collision_detected = m_sequential_collision_detected;
return path.c_str();
}