Skip to content

Commit 33bfef7

Browse files
author
jef
committed
fix #3313
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15018 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d82bf44 commit 33bfef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/attributetable/qgsattributetabledelegate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int QgsAttributeTableDelegate::featureId( const QModelIndex &index ) const
6060

6161
const QgsAttributeTableFilterModel *fm = dynamic_cast<const QgsAttributeTableFilterModel *>( index.model() );
6262
if ( fm )
63-
return fm->tableModel()->rowToId( index.row() );
63+
return fm->tableModel()->rowToId( fm->mapToSource( index ).row() );
6464

6565
return -1;
6666
}

0 commit comments

Comments
 (0)