@@ -72,7 +72,7 @@ QgsGeometryCheckerResultTab::QgsGeometryCheckerResultTab( QgisInterface *iface,
72
72
connect ( checker, &QgsGeometryChecker::errorAdded, this , &QgsGeometryCheckerResultTab::addError );
73
73
connect ( checker, &QgsGeometryChecker::errorUpdated, this , &QgsGeometryCheckerResultTab::updateError );
74
74
connect ( ui.tableWidgetErrors ->selectionModel (), &QItemSelectionModel::selectionChanged, this , &QgsGeometryCheckerResultTab::onSelectionChanged );
75
- connect ( ui.buttonGroupSelectAction , static_cast <void ( QButtonGroup::* )( int )>( &QButtonGroup::buttonClicked ), this , & QgsGeometryCheckerResultTab::highlightErrors );
75
+ connect ( ui.buttonGroupSelectAction , static_cast <void ( QButtonGroup::* )( int )>( &QButtonGroup::buttonClicked ), this , [ this ]( int ) { QgsGeometryCheckerResultTab::highlightErrors (); } );
76
76
connect ( ui.pushButtonOpenAttributeTable , &QAbstractButton::clicked, this , &QgsGeometryCheckerResultTab::openAttributeTable );
77
77
connect ( ui.pushButtonFixWithDefault , &QAbstractButton::clicked, this , &QgsGeometryCheckerResultTab::fixErrorsWithDefault );
78
78
connect ( ui.pushButtonFixWithPrompt , &QAbstractButton::clicked, this , &QgsGeometryCheckerResultTab::fixErrorsWithPrompt );
@@ -388,7 +388,10 @@ void QgsGeometryCheckerResultTab::highlightErrors( bool current )
388
388
}
389
389
}
390
390
391
- mIface ->mapCanvas ()->setExtent ( totextent );
391
+ if ( !totextent.isEmpty () )
392
+ {
393
+ mIface ->mapCanvas ()->setExtent ( totextent );
394
+ }
392
395
mIface ->mapCanvas ()->refresh ();
393
396
}
394
397
0 commit comments