Skip to content
Permalink
Browse files

Fix #9642 (update overview even if map settings are not valid)

  • Loading branch information
wonder-sk committed Feb 25, 2014
1 parent 0310bb2 commit 1732db5266e9e9b6ac4383dc36d029e02ed592b1
Showing with 7 additions and 1 deletion.
  1. +1 −1 src/core/qgsmapsettings.cpp
  2. +6 −0 src/gui/qgsmapoverviewcanvas.cpp
@@ -50,7 +50,7 @@ void QgsMapSettings::updateDerived()
{
QgsRectangle extent = mExtent;

if ( extent.isEmpty() )
if ( extent.isEmpty() || !extent.isFinite() )
{
mValid = false;
return;
@@ -257,8 +257,14 @@ void QgsMapOverviewCanvas::updatePanningWidget( const QPoint& pos )

void QgsMapOverviewCanvas::refresh()
{
updateFullExtent();

if ( !mSettings.hasValidSettings() )
{
mPixmap = QPixmap();
update();
return; // makes no sense to render anything
}

if ( mJob )
{

0 comments on commit 1732db5

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