Skip to content
Permalink
Browse files

Merge features: Fix "take attributes from selected feature"

Fix #7668
Fix #7922
  • Loading branch information
m-kuhn committed Jul 4, 2013
1 parent b7d7076 commit e53aa07698323c0a65d9071c35815ed0eedc72a2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsmergeattributesdialog.cpp
@@ -274,7 +274,7 @@ void QgsMergeAttributesDialog::refreshMergedValue( int col )
}
else //an existing feature value
{
int featureId = mergeBehaviourString.split( " " ).at( 1 ).toInt(); //probably not very robust for translations...
int featureId = mergeBehaviourString.split( " " ).value( 1 ).toInt(); //probably not very robust for translations...
mergeResult = featureAttribute( featureId, col );
}

@@ -488,7 +488,7 @@ void QgsMergeAttributesDialog::on_mFromSelectedPushButton_clicked()
QComboBox* currentComboBox = qobject_cast<QComboBox *>( mTableWidget->cellWidget( 0, i ) );
if ( currentComboBox )
{
currentComboBox->setCurrentIndex( currentComboBox->findText( tr( "feature %1" ).arg( featureId ) ) );
currentComboBox->setCurrentIndex( currentComboBox->findText( tr( "Feature %1" ).arg( featureId ) ) );
}
}
}

0 comments on commit e53aa07

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