Answer to a XXX question added to comment - A useless commit this is...

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1386 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2004-05-13 03:45:13 +00:00
parent cc7dc206e2
commit 7d033c4228

View File

@ -239,7 +239,8 @@ void QgsMapCanvas::addLayer(QgsMapLayer * lyr)
if (imp_->layers.size() == 1)
{
imp_->fullExtent = lyr->extent();
imp_->fullExtent.scale(1.1); // XXX why magic number of 1.1?
imp_->fullExtent.scale(1.1);
// XXX why magic number of 1.1? - TO GET SOME WHITESPACE AT THE EDGES OF THE MAP
imp_->currentExtent = imp_->fullExtent;
}
else