mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Fix attribute table remove row, Followup 8eca38c
Was an off-by-one error emitted by the attribute table model
This commit is contained in:
parent
c84e823831
commit
a02e694818
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user