Skip to content
Permalink
Browse files

Fix #32759, Don't zoom out when selecting vertices on the vertex editor

  • Loading branch information
github-actions authored and nyalldawson committed Mar 23, 2020
1 parent d6fb107 commit 9d40c77da152744eaa6ff6f7eb0370843bc041d8
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/vertextool/qgsvertexeditor.cpp
@@ -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 )
{

0 comments on commit 9d40c77

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