Skip to content
Permalink
Browse files
attribute table: NULL values are considered less than other values (f…
…ixes #6715)
  • Loading branch information
jef-n committed Jan 6, 2013
1 parent eb9af3e commit 55e34090e50d8e910549685af41bf737c62ab73f
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/attributetable/qgsattributetableidcolumnpair.cpp
@@ -24,6 +24,12 @@ bool QgsAttributeTableIdColumnPair::operator<( const QgsAttributeTableIdColumnPa
//QVariant thinks gid is a string!
QVariant::Type columnType = mItem.type();

if ( mItem.isNull() )
return 1;

if ( b.mItem.isNull() )
return 0;

switch ( columnType )
{
case QVariant::Int:

0 comments on commit 55e3409

Please sign in to comment.