diff --git a/poly2d/p2d_area_holes.cpp b/poly2d/p2d_area_holes.cpp index 28bd9ef..688a740 100644 --- a/poly2d/p2d_area_holes.cpp +++ b/poly2d/p2d_area_holes.cpp @@ -1,8 +1,8 @@ /* * p2d_area_holes.cpp - Fill an area with holes * - * Written 2012 by Werner Almesberger - * Copyright 2012 by Werner Almesberger + * Written 2012, 2015 by Werner Almesberger + * Copyright 2012, 2015 by Werner Almesberger * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -72,8 +72,7 @@ static void recurse_area(Polygon_with_holes poly, double current, { if (!poly.outer_boundary().is_simple()) return; - for (Polygon_with_holes::Hole_const_iterator - hit = poly.holes_begin(); + for (Polygon_with_holes::Hole_const_iterator hit = poly.holes_begin(); hit != poly.holes_end(); ++hit) if (!hit->is_simple()) return;