FIX: 3mf: fix a popup issue while parsing old 3mf

jira: no-jira
Change-Id: I89f0b83f146bea60ef821160254cee4d2c0eb0ca
This commit is contained in:
lane.wei 2025-03-28 18:16:56 +08:00 committed by Lane.Wei
parent 152ce24b7e
commit 5f1714f02c
1 changed files with 2 additions and 0 deletions

View File

@ -4081,6 +4081,8 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
//std::string type = bbs_get_attribute_value_string(attributes, num_attributes, TYPE_ATTR);
std::string key = bbs_get_attribute_value_string(attributes, num_attributes, KEY_ATTR);
std::string value = bbs_get_attribute_value_string(attributes, num_attributes, VALUE_ATTR);
if (key.empty())
return true;
auto get_vector_from_string = [](const std::string& str) -> std::vector<int> {
std::stringstream stream(str);