Skip to content

Commit a02e694

Browse files
committedMay 28, 2015
Fix attribute table remove row, Followup 8eca38c
Was an off-by-one error emitted by the attribute table model
1 parent c84e823 commit a02e694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void QgsAttributeTableModel::featuresDeleted( QgsFeatureIds fids )
131131

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

0 commit comments

Comments
 (0)
Please sign in to comment.