diff --git a/include/mapnik/util/geometry_to_wkb.hpp b/include/mapnik/util/geometry_to_wkb.hpp index ee67c9156..6882a8c5c 100644 --- a/include/mapnik/util/geometry_to_wkb.hpp +++ b/include/mapnik/util/geometry_to_wkb.hpp @@ -243,12 +243,12 @@ wkb_buffer_ptr to_wkb(geometry_container const& paths, wkbByteOrder byte_order ) geometry_container::const_iterator itr = paths.begin(); geometry_container::const_iterator end = paths.end(); for ( ; itr!=end; ++itr) - { + { wkb_buffer_ptr wkb = to_wkb(*itr,byte_order); multi_size += wkb->size(); int type = static_cast(itr->type()); - if (multi_type > 0 && multi_type != itr->type()) - collection = true; + if (multi_type > 0 && multi_type != itr->type()) + collection = true; multi_type = type; wkb_cont.push_back(wkb); }