Navigation Menu

Skip to content

Commit

Permalink
Fix #32759, Don't zoom out when selecting vertices on the vertex editor
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Mar 25, 2020
1 parent d6fb107 commit 9d40c77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/vertextool/qgsvertexeditor.cpp
Expand Up @@ -433,9 +433,10 @@ void QgsVertexEditor::updateVertexSelection( const QItemSelection &, const QItem
try
{
QgsRectangle transformedBbox = t.transform( *bbox );
QgsRectangle canvasExtent = mCanvas->mapSettings().extent();
const QgsRectangle canvasExtent = mCanvas->mapSettings().visibleExtent();
transformedBbox.combineExtentWith( canvasExtent );
mCanvas->setExtent( transformedBbox );
mCanvas->setExtent( transformedBbox, true );
mCanvas->refresh();
}
catch ( QgsCsException &cse )
{
Expand Down

0 comments on commit 9d40c77

Please sign in to comment.