mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-22 18:32:16 +00:00
Fix crash ZAA (#13450)
fix crash zaa Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
@@ -38,6 +38,9 @@ Polyline Polygon::split_at_vertex(const Point &point) const
|
||||
Polyline Polygon::split_at_index(int index) const
|
||||
{
|
||||
Polyline polyline;
|
||||
if (this->points.empty())
|
||||
return polyline;
|
||||
|
||||
polyline.points.reserve(this->points.size() + 1);
|
||||
for (Points::const_iterator it = this->points.begin() + index; it != this->points.end(); ++it)
|
||||
polyline.points.push_back(*it);
|
||||
|
||||
Reference in New Issue
Block a user