diff --git a/include/mapnik/feature.hpp b/include/mapnik/feature.hpp index 3f788e27a..082bb43b3 100644 --- a/include/mapnik/feature.hpp +++ b/include/mapnik/feature.hpp @@ -143,7 +143,8 @@ public: else { cont_type::size_type index = ctx_->push(key); - data_.push_back(val); + if (index == data_.size()) + data_.push_back(val); } }