diff --git a/include/mapnik/feature.hpp b/include/mapnik/feature.hpp index d83de558a..352a463c1 100644 --- a/include/mapnik/feature.hpp +++ b/include/mapnik/feature.hpp @@ -235,7 +235,7 @@ public: geometry_type const& geom = get_geometry(i); if (i==0) { - box2d const& box = geom.envelope(); + box2d box = geom.envelope(); result.init(box.minx(),box.miny(),box.maxx(),box.maxy()); } else