Bug fix: Don't warn about undefined metawriter when no metawriter is assigned to a symbolizer.
This commit is contained in:
parent
ca2aec8463
commit
fb7913619a
1 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,12 @@ void symbolizer_base::add_metawriter(std::string const& name, metawriter_propert
|
||||||
|
|
||||||
void symbolizer_base::cache_metawriters(Map const &m)
|
void symbolizer_base::cache_metawriters(Map const &m)
|
||||||
{
|
{
|
||||||
|
if (writer_name_.empty()) {
|
||||||
|
properties_complete_.clear();
|
||||||
|
writer_ptr_ = metawriter_ptr();
|
||||||
|
return; // No metawriter
|
||||||
|
}
|
||||||
|
|
||||||
writer_ptr_ = m.find_metawriter(writer_name_);
|
writer_ptr_ = m.find_metawriter(writer_name_);
|
||||||
if (writer_ptr_) {
|
if (writer_ptr_) {
|
||||||
properties_complete_ = writer_ptr_->get_default_properties();
|
properties_complete_ = writer_ptr_->get_default_properties();
|
||||||
|
|
Loading…
Reference in a new issue