Skip to content
Permalink
Browse files

Also select row with largest feature so it gets highlighted

  • Loading branch information
uclaros authored and nyalldawson committed Mar 15, 2021
1 parent def9af6 commit fd826d7005d7e4ae44e99d32f2d939df4f684d39
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/app/qgsmergeattributesdialog.cpp
@@ -541,8 +541,20 @@ void QgsMergeAttributesDialog::mFromLargestPushButton_clicked()
default:
return;
}
// Only proceed if we do have a largest geometry
if ( maxValue > 0 )
{
setAllAttributesFromFeature( featureId );
// Also select the appropriate row so the feature gets highlighted
for ( int row = mTableWidget->rowCount() - 1; row >= 0; --row )
{
if ( mTableWidget->verticalHeaderItem( row )->text() == FID_TO_STRING( featureId ) )
{
mTableWidget->selectRow( row );
return;
}
}
}
}

void QgsMergeAttributesDialog::mRemoveFeatureFromSelectionButton_clicked()

0 comments on commit fd826d7

Please sign in to comment.