mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
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:
parent
cc7dc206e2
commit
7d033c4228
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user