From 7d56827e268c3410a5afde63edf264a755ed28b4 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 13 Sep 2016 15:29:31 +0200 Subject: [PATCH] updated for older gcc --- xs/src/libslic3r/GCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/libslic3r/GCode.cpp b/xs/src/libslic3r/GCode.cpp index befb00d03..90f4d0c06 100644 --- a/xs/src/libslic3r/GCode.cpp +++ b/xs/src/libslic3r/GCode.cpp @@ -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];