Skip to content

Commit

Permalink
Fix attribute table remove row, Followup 8eca38c
Browse files Browse the repository at this point in the history
Was an off-by-one error emitted by the attribute table model
  • Loading branch information
m-kuhn committed May 28, 2015
1 parent c84e823 commit a02e694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -131,7 +131,7 @@ void QgsAttributeTableModel::featuresDeleted( QgsFeatureIds fids )

bool QgsAttributeTableModel::removeRows( int row, int count, const QModelIndex &parent )
{
beginRemoveRows( parent, row, row + count );
beginRemoveRows( parent, row, row + count - 1 );
#ifdef QGISDEBUG
if ( 3 > QgsLogger::debugLevel() )
QgsDebugMsgLevel( QString( "remove %2 rows at %1 (rows %3, ids %4)" ).arg( row ).arg( count ).arg( mRowIdMap.size() ).arg( mIdRowMap.size() ), 3 );
Expand Down

0 comments on commit a02e694

Please sign in to comment.