check datasource in envelope method

This commit is contained in:
Artem Pavlenko 2005-11-30 00:24:08 +00:00
parent 7f4df91371
commit aaba4d08cf

View file

@ -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)