Skip to content
Permalink
Browse files
Better reference item to zoom to in modeler
follow-up 95bffad
  • Loading branch information
DelazJ authored and nyalldawson committed Nov 19, 2021
1 parent 95bffad commit 01e391e5892e572721c5d33c5f167bb4c458dda1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/processing/models/qgsmodeldesignerdialog.cpp
@@ -835,7 +835,7 @@ void QgsModelDesignerDialog::populateZoomToMenu()
QAction *zoomAction = new QAction( box.description(), mGroupMenu );
connect( zoomAction, &QAction::triggered, this, [ = ]
{
QRectF groupRect = item->boundingRect();
QRectF groupRect = item->mapToScene( item->boundingRect() ).boundingRect();
groupRect.adjust( -10, -10, 10, 10 );
mView->fitInView( groupRect, Qt::KeepAspectRatio );
mView->centerOn( item );

0 comments on commit 01e391e

Please sign in to comment.