diff --git a/include/mapnik/vertex_converters.hpp b/include/mapnik/vertex_converters.hpp index 328c3e8f6..fa9d37191 100644 --- a/include/mapnik/vertex_converters.hpp +++ b/include/mapnik/vertex_converters.hpp @@ -121,7 +121,7 @@ struct converter_traits static void setup(geometry_type & geom, Args & args) { typename boost::mpl::at >::type const& sym = boost::fusion::at_c<2>(args); - double scale_factor = boost::fusion::at_c<5>(args); + double scale_factor = boost::fusion::at_c<5>(args); stroke const& stroke_ = sym.get_stroke(); dash_array const& d = stroke_.get_dash_array(); dash_array::const_iterator itr = d.begin(); @@ -213,10 +213,10 @@ struct converter_traits { typedef T geometry_type; typedef offset_converter conv_type; - + template static void setup(geometry_type & geom, Args & args) - { + { typename boost::mpl::at >::type const& sym = boost::fusion::at_c<2>(args); geom.set_offset(sym.offset()); } @@ -320,23 +320,20 @@ struct vertex_converter : private boost::noncopyable proj_trans_type const&, double //scale-factor > args_type; - + vertex_converter(bbox_type const& b, rasterizer_type & ras, - symbolizer_type const& sym, trans_type & tr, + symbolizer_type const& sym, trans_type & tr, proj_trans_type const& prj_trans, double scale_factor) : disp_(args_type(boost::cref(b),boost::ref(ras), boost::cref(sym),boost::cref(tr), boost::cref(prj_trans),scale_factor)) {} - + template void apply(Geometry & geom) { typedef Geometry geometry_type; - //BOOST_FOREACH(geometry_type & geom, cont) - { - disp_.template apply(geom); - } + disp_.template apply(geom); } template