Skip to content
Permalink
Browse files

Fix#32759: Use visible extent and take magnification into account

  • Loading branch information
uclaros authored and nyalldawson committed Mar 22, 2020
1 parent 9a0e1a9 commit 36a3e634f5bd70f7268668b15067732f0f5aa25b
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 36a3e63

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