Workaround Clipper changing point coordinates while performing simplify_polygons(), thus causing a crash in Slic3r. #2306

This commit is contained in:
Alessandro Ranellucci 2014-11-08 12:56:14 +01:00
parent a78be203aa
commit 9c93e52c8f
4 changed files with 14 additions and 7 deletions

View file

@ -224,7 +224,7 @@ ExtrusionLoop::length() const
return len;
}
void
bool
ExtrusionLoop::split_at_vertex(const Point &point)
{
for (ExtrusionPaths::iterator path = this->paths.begin(); path != this->paths.end(); ++path) {
@ -261,10 +261,10 @@ ExtrusionLoop::split_at_vertex(const Point &point)
// we can now override the old path list with the new one and stop looping
this->paths = new_paths;
}
return;
return true;
}
}
CONFESS("Point not found");
return false;
}
void