Skip to content
Permalink
Browse files
fix #3313
git-svn-id: http://svn.osgeo.org/qgis/trunk@15018 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jan 11, 2011
1 parent 73c98aa commit c98d8d938481a8fe1d3c051c0c551c5aca894796
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/attributetable/qgsattributetabledelegate.cpp
@@ -60,7 +60,7 @@ int QgsAttributeTableDelegate::featureId( const QModelIndex &index ) const

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

return -1;
}

0 comments on commit c98d8d9

Please sign in to comment.