return early from map.zoom_all() if a map contains no layers

This commit is contained in:
Dane Springmeyer 2011-10-03 20:15:57 +00:00
parent c1e2715af8
commit 4d5439672d

View file

@ -382,6 +382,8 @@ void Map::zoom_all()
{
try
{
if (!layers_.size() > 0)
return;
projection proj0(srs_);
box2d<double> ext;
bool success = false;