workaround clang bug on oneiric - closes #1352

This commit is contained in:
Dane Springmeyer 2012-08-03 17:13:09 -07:00
parent b43697fd5d
commit 6acd352d40

View file

@ -278,8 +278,10 @@ bool text_symbolizer_helper<FaceManagerT, DetectorT>::next_placement()
info_ = &(text_.get_string_info());
if (placement_->properties.orientation)
{
// https://github.com/mapnik/mapnik/issues/1352
mapnik::evaluate<Feature, value_type> evaluator(feature_);
angle_ = boost::apply_visitor(
evaluate<Feature, value_type>(feature_),
evaluator,
*(placement_->properties.orientation)).to_double();
} else {
angle_ = 0.0;