mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Fix asan crash on statistics step
This commit is contained in:
@@ -177,6 +177,8 @@ private:
|
|||||||
return level<T>(r1) < level<T>(r2);
|
return level<T>(r1) < level<T>(r2);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(it == cont.end()) return it;
|
||||||
|
|
||||||
T diff = std::abs(level<T>(*it) - lvl);
|
T diff = std::abs(level<T>(*it) - lvl);
|
||||||
|
|
||||||
if(it != cont.begin()) {
|
if(it != cont.begin()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user