mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 01:15:53 +08:00
libvgcode - Fixed potential out of bound access in ViewerImpl::update_view_full_range()
This commit is contained in:
parent
c2b8914ed0
commit
c3120b038a
@ -1668,7 +1668,7 @@ void ViewerImpl::update_view_full_range()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If the first vertex is an extrusion, add an extra step to properly detect the first segment
|
// If the first vertex is an extrusion, add an extra step to properly detect the first segment
|
||||||
if (first_it != m_vertices.begin() && first_it->type == EMoveType::Extrude)
|
if (first_it != m_vertices.begin() && first_it != m_vertices.end() && first_it->type == EMoveType::Extrude)
|
||||||
--first_it;
|
--first_it;
|
||||||
|
|
||||||
if (first_it == m_vertices.end())
|
if (first_it == m_vertices.end())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user