Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 55e3409
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/attributetable/qgsattributetableidcolumnpair.cpp
Expand Up @@ -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:
Expand Down

0 comments on commit 55e3409

Please sign in to comment.