Skip to content
Permalink
Browse files
Fix attribute table remove row, Followup 8eca38c
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 a02e69481888f2b5ea126e10a2cb3e28a26130cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsattributetablemodel.cpp
@@ -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 );

0 comments on commit a02e694

Please sign in to comment.