We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 5a30019 commit 0d8416eCopy full SHA for 0d8416e
src/app/legend/qgslegend.cpp
@@ -1754,6 +1754,8 @@ void QgsLegend::legendLayerZoom()
1754
extent.combineExtentWith(&lyrExtent);
1755
}
1756
1757
+ // Increase bounding box with 5%, so that layer is a bit inside the borders
1758
+ extent.scale(1.05);
1759
1760
//zoom to bounding box
1761
mMapCanvas->setExtent(extent);
0 commit comments