Skip to content
Permalink
Browse files

Fix #9643 (overview extent broken)

  • Loading branch information
wonder-sk committed Feb 25, 2014
1 parent cd89b1a commit 29e9272285e1196602d535476b7fd58e2b3f0f13
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/gui/qgsmapoverviewcanvas.cpp
@@ -320,7 +320,12 @@ void QgsMapOverviewCanvas::setLayerSet( const QStringList& layerSet )

void QgsMapOverviewCanvas::updateFullExtent()
{
QgsRectangle rect = mMapCanvas->fullExtent();
QgsRectangle rect;
if ( mSettings.hasValidSettings() )
rect = mSettings.fullExtent();
else
rect = mMapCanvas->fullExtent();

// expand a bit to keep features on margin
rect.scale( 1.1 );

0 comments on commit 29e9272

Please sign in to comment.
You can’t perform that action at this time.