+ don't call zoom_all if bounding box is supplied

This commit is contained in:
Artem Pavlenko 2010-06-15 12:27:34 +00:00
parent 68ff49d429
commit bb6fafad42

View file

@ -179,9 +179,9 @@ void MainWindow::load_map_file(QString const& filename)
{ {
std::cout << ex.what() << "\n"; std::cout << ex.what() << "\n";
} }
map->zoom_all(); //map->zoom_all();
mapnik::box2d<double> const& ext = map->getCurrentExtent(); //mapnik::box2d<double> const& ext = map->getCurrentExtent();
mapWidget_->zoomToBox(ext); //mapWidget_->zoomToBox(ext);
layerTab_->setModel(new LayerListModel(map,this)); layerTab_->setModel(new LayerListModel(map,this));
styleTab_->setModel(new StyleModel(map,this)); styleTab_->setModel(new StyleModel(map,this));
} }