mirror of
https://github.com/mapnik/mapnik.git
synced 2026-02-01 17:36:36 +00:00
Output a warning if a style is not found.
This commit is contained in:
parent
d272326d88
commit
31a7aa2a3d
@ -163,8 +163,11 @@ private:
|
||||
bool active_rules=false;
|
||||
|
||||
boost::optional<feature_type_style const&> style=m_.find_style(*stylesIter);
|
||||
if (!style) continue;
|
||||
|
||||
if (!style) {
|
||||
std::clog << "WARNING: style '" << *stylesIter << "' required for layer '" << lay.name() << "' does not exist.\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
const std::vector<rule_type>& rules=(*style).get_rules();
|
||||
std::vector<rule_type>::const_iterator ruleIter=rules.begin();
|
||||
std::vector<rule_type>::const_iterator ruleEnd=rules.end();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user