Skip to content

Commit

Permalink
fix max/min values in spatialite provider for non-numeric fields
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14298 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 27, 2010
1 parent 8ecc563 commit 235ac00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Expand Up @@ -740,7 +740,7 @@ QVariant QgsSpatiaLiteProvider::minimumValue( int index )
else
{
// returning as DOUBLE
return minValue.toDouble();
return convertValue( fld.type(), minValue );
}

error:
Expand Down Expand Up @@ -795,8 +795,7 @@ QVariant QgsSpatiaLiteProvider::maximumValue( int index )
}
else
{
// returning as DOUBLE
return maxValue.toDouble();
return convertValue( fld.type(), maxValue );
}

error:
Expand Down

0 comments on commit 235ac00

Please sign in to comment.