diff --git a/include/mapnik/text/text_properties.hpp b/include/mapnik/text/text_properties.hpp index cd5af9726..6f970aef6 100644 --- a/include/mapnik/text/text_properties.hpp +++ b/include/mapnik/text/text_properties.hpp @@ -23,18 +23,16 @@ #define MAPNIK_TEXT_PROPERTIES_HPP // mapnik -#include #include #include -#include #include -#include #include #include -#include #include #include #include +#include + // stl #include @@ -99,7 +97,7 @@ struct MAPNIK_DECL format_properties format_properties(); void from_xml(xml_node const& sym, fontset_map const& fontsets); void to_xml(boost::property_tree::ptree & node, bool explicit_defaults, - format_properties const& dfl = format_properties()) const; + format_properties const& dfl) const; // collect expressions void add_expressions(expression_set & output) const; @@ -116,7 +114,6 @@ struct MAPNIK_DECL format_properties symbolizer_base::value_type halo_radius; symbolizer_base::value_type text_transform; symbolizer_base::value_type font_feature_settings; - }; @@ -129,7 +126,7 @@ struct MAPNIK_DECL text_layout_properties void from_xml(xml_node const &sym, fontset_map const& fontsets); // Save all values to XML ptree (but does not create a new parent node!). void to_xml(boost::property_tree::ptree & node, bool explicit_defaults, - text_layout_properties const& dfl = text_layout_properties()) const; + text_layout_properties const& dfl) const; // Get a list of all expressions used in any placement. // This function is used to collect attributes. @@ -178,7 +175,7 @@ struct MAPNIK_DECL text_symbolizer_properties void from_xml(xml_node const& node, fontset_map const& fontsets); // Save all values to XML ptree (but does not create a new parent node!). void to_xml(boost::property_tree::ptree & node, bool explicit_defaults, - text_symbolizer_properties const& dfl = text_symbolizer_properties()) const; + text_symbolizer_properties const& dfl) const; // Takes a feature and produces formatted text as output. // The output object has to be created by the caller and passed in for thread safety. diff --git a/src/save_map.cpp b/src/save_map.cpp index 78c3a7888..7bb38fa8c 100644 --- a/src/save_map.cpp +++ b/src/save_map.cpp @@ -63,7 +63,8 @@ using boost::optional; void serialize_text_placements(ptree & node, text_placements_ptr const& p, bool explicit_defaults) { - p->defaults.to_xml(node, explicit_defaults); + text_symbolizer_properties dfl; + p->defaults.to_xml(node, explicit_defaults, dfl); // Known types: // - text_placements_dummy: no handling required // - text_placements_simple: positions string