fix logic error causing direct-image-filters to not be enabled unless normal image-filters are also enabled

This commit is contained in:
Dane Springmeyer 2013-02-28 15:22:27 -05:00
parent 7ad2d12633
commit 7b9f9fe260

View file

@ -270,14 +270,13 @@ void agg_renderer<T>::end_style_processing(feature_type_style const& st)
{
composite(pixmap_.data(),current_buffer_->data(), src_over, st.get_opacity(), 0, 0, false);
}
}
// apply any 'direct' image filters
mapnik::filter::filter_visitor<image_32> visitor(pixmap_);
BOOST_FOREACH(mapnik::filter::filter_type const& filter_tag, st.direct_image_filters())
{
boost::apply_visitor(visitor, filter_tag);
}
}
MAPNIK_LOG_DEBUG(agg_renderer) << "agg_renderer: End processing style";
}