mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 01:49:02 +08:00
Use correct range for range check on iterator.
This commit is contained in:
parent
ef0dd3c7c9
commit
e8f9940062
@ -431,7 +431,8 @@ void Plater::select_object(ObjRef obj) {
|
||||
o.selected = false;
|
||||
o.selected_instance = -1;
|
||||
}
|
||||
if (obj >= this->objects.end() && obj < this->objects.begin()) {
|
||||
// range check the iterator
|
||||
if (obj < this->objects.end() && obj >= this->objects.begin()) {
|
||||
obj->selected = true;
|
||||
obj->selected_instance = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user