mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
check datasource in envelope method
This commit is contained in:
parent
7f4df91371
commit
aaba4d08cf
@ -162,7 +162,9 @@ namespace mapnik
|
||||
|
||||
const Envelope<double>& Layer::envelope() const
|
||||
{
|
||||
return ds_->envelope();
|
||||
if (ds_)
|
||||
return ds_->envelope();
|
||||
return Envelope<double>();
|
||||
}
|
||||
|
||||
void Layer::selection_style(const std::string& name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user