mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 20:30:42 +08:00
Use .at() instead of [] because that'll throw an exception if out of bounds instead of a hard-to-find memory crash.
This commit is contained in:
parent
3d57da105d
commit
8ba681538d
@ -199,8 +199,8 @@ std::vector<int> Plater::load_file(const wxString& file, const int obj_idx_to_lo
|
||||
}
|
||||
|
||||
for (const auto &j : obj_idx) {
|
||||
this->objects[j].input_file = file;
|
||||
this->objects[j].input_file_obj_idx = i++;
|
||||
this->objects.at(j).input_file = file;
|
||||
this->objects.at(j).input_file_obj_idx = i++;
|
||||
}
|
||||
GetFrame()->statusbar->SetStatusText(_("Loaded ") + input_file.GetName());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user