Add compatiblity layer for C++ code.

This commit is contained in:
Hermann Kraus 2012-05-27 01:14:26 +02:00
parent f692df9337
commit 0697461488

View file

@ -24,6 +24,7 @@
#include <mapnik/debug.hpp> #include <mapnik/debug.hpp>
#include <mapnik/text_symbolizer.hpp> #include <mapnik/text_symbolizer.hpp>
#include <mapnik/enumeration.hpp> #include <mapnik/enumeration.hpp>
#include <mapnik/formatting/text.hpp>
// boost // boost
@ -137,7 +138,9 @@ text_symbolizer& text_symbolizer::operator=(text_symbolizer const& other)
expression_ptr text_symbolizer::get_name() const expression_ptr text_symbolizer::get_name() const
{ {
return expression_ptr(); formatting::text_node *node = dynamic_cast<formatting::text_node *>(placement_options_->defaults.format_tree().get());
if (!node) return expression_ptr();
return node->get_text();
} }
void text_symbolizer::set_name(expression_ptr name) void text_symbolizer::set_name(expression_ptr name)