[QGIS Commit] r15018 - trunk/qgis/src/app/attributetable
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Jan 11 13:32:54 EST 2011
Author: jef
Date: 2011-01-11 10:32:54 -0800 (Tue, 11 Jan 2011)
New Revision: 15018
Modified:
trunk/qgis/src/app/attributetable/qgsattributetabledelegate.cpp
Log:
fix #3313
Modified: trunk/qgis/src/app/attributetable/qgsattributetabledelegate.cpp
===================================================================
--- trunk/qgis/src/app/attributetable/qgsattributetabledelegate.cpp 2011-01-11 17:47:22 UTC (rev 15017)
+++ trunk/qgis/src/app/attributetable/qgsattributetabledelegate.cpp 2011-01-11 18:32:54 UTC (rev 15018)
@@ -60,7 +60,7 @@
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;
}
More information about the QGIS-commit
mailing list