updated for older gcc

This commit is contained in:
bubnikv 2016-09-13 15:29:31 +02:00
parent f73ca007e6
commit 7d56827e26

View file

@ -582,7 +582,7 @@ GCode::extrude(ExtrusionLoop loop, std::string description, double speed)
// Insert a projection of last_pos into the polygon.
size_t last_pos_proj_idx;
{
auto it = project_point_to_polygon_and_insert(polygon, last_pos, 0.1 * nozzle_r);
Points::iterator it = project_point_to_polygon_and_insert(polygon, last_pos, 0.1 * nozzle_r);
last_pos_proj_idx = it - polygon.points.begin();
}
Point last_pos_proj = polygon.points[last_pos_proj_idx];