Skip to content

Commit

Permalink
Fix map not refreshed when deselecting/inverting selection (fix #16365)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 20, 2017
1 parent 0d3cf57 commit 0ed1414
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/app/qgisapp.cpp
Expand Up @@ -7582,6 +7582,7 @@ void QgisApp::deselectAll()
// Turn on rendering (if it was on previously)
if ( !wasFrozen )
freezeCanvases( false );
refreshMapCanvas();
}

void QgisApp::invertSelection()
Expand All @@ -7597,15 +7598,7 @@ void QgisApp::invertSelection()
return;
}

// Turn off rendering to improve speed.
bool wasFrozen = mMapCanvas->isFrozen();
freezeCanvases();

vlayer->invertSelection();

// Turn on rendering (if it was on previously)
if ( !wasFrozen )
freezeCanvases( false );
}

void QgisApp::selectAll()
Expand Down Expand Up @@ -9890,6 +9883,7 @@ void QgisApp::closeProject()
mMapCanvas->setLayers( QList<QgsMapLayer *>() );
mMapCanvas->clearCache();
mOverviewCanvas->setLayers( QList<QgsMapLayer *>() );
mMapCanvas->freeze( false );
removeAllLayers();
}

Expand Down

1 comment on commit 0ed1414

@rduivenvoorde
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Nyall,

thanks for fixing this, so quick.

the other part of #16365 is about the strange behaviour of the icons. Do you want me to create an other issue for that one?

Please sign in to comment.