mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-14 15:26:11 -06:00
FIX: config: fix another potential crash when load gcode.3mf
jira: STUDIO-9131 Change-Id: I1bcac6dfa0454e4d6852b7c65bed8a82ac2af4b5 (cherry picked from commit a8f31fcd621deeab7dcc1091d4ae970021b52355) (cherry picked from commit 6ce38e715a40bca7e3f83d4b74c7f1b09347789d)
This commit is contained in:
parent
b849426125
commit
8446869cb1
1 changed files with 4 additions and 1 deletions
|
|
@ -618,7 +618,10 @@ public:
|
|||
this->values[i] = rhs_vec->values[i];
|
||||
modified = true;
|
||||
} else {
|
||||
this->values[i] = default_value[default_index[i]-1];
|
||||
if ((i < default_index.size()) && (default_index[i] - 1 < default_value.size()))
|
||||
this->values[i] = default_value[default_index[i] - 1];
|
||||
else
|
||||
this->values[i] = default_value[0];
|
||||
}
|
||||
}
|
||||
return modified;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue