return early from map.zoom_all() if a map contains no layers
This commit is contained in:
parent
c1e2715af8
commit
4d5439672d
1 changed files with 2 additions and 0 deletions
|
@ -382,6 +382,8 @@ void Map::zoom_all()
|
|||
{
|
||||
try
|
||||
{
|
||||
if (!layers_.size() > 0)
|
||||
return;
|
||||
projection proj0(srs_);
|
||||
box2d<double> ext;
|
||||
bool success = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue