mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 17:15:57 +08:00
Use correct range for range check on iterator.
This commit is contained in:
parent
1d4e5775ae
commit
13e8a1ea1a
@ -431,7 +431,8 @@ void Plater::select_object(ObjRef obj) {
|
|||||||
o.selected = false;
|
o.selected = false;
|
||||||
o.selected_instance = -1;
|
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 = true;
|
||||||
obj->selected_instance = 0;
|
obj->selected_instance = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user