Skip to content

Commit

Permalink
Fix #9642 (update overview even if map settings are not valid)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Feb 25, 2014
1 parent 0310bb2 commit 1732db5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmapsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void QgsMapSettings::updateDerived()
{
QgsRectangle extent = mExtent;

if ( extent.isEmpty() )
if ( extent.isEmpty() || !extent.isFinite() )
{
mValid = false;
return;
Expand Down
6 changes: 6 additions & 0 deletions src/gui/qgsmapoverviewcanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 1732db5

Please sign in to comment.