Skip to content
Permalink
Browse files

Fix attribute table cannot map index when filtered

  • Loading branch information
m-kuhn committed Jul 7, 2016
1 parent 77fa125 commit 5ae780241fa60ff52d4204816af9cca295509bd4
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/attributetable/qgsattributetablefiltermodel.cpp
@@ -503,7 +503,11 @@ QModelIndex QgsAttributeTableFilterModel::mapFromSource( const QModelIndex& sour
if ( proxyIndex.column() < 0 )
return QModelIndex();

return index( proxyIndex.row(), mapColumnToSource( proxyIndex.column() ), proxyIndex.parent() );
int col = mapColumnToSource( proxyIndex.column() );
if ( col == -1 )
col = 0;

return index( proxyIndex.row(), col , proxyIndex.parent() );
}

Qt::ItemFlags QgsAttributeTableFilterModel::flags( const QModelIndex& index ) const

0 comments on commit 5ae7802

Please sign in to comment.
You can’t perform that action at this time.