Skip to content
Permalink
Browse files
fix max/min values in spatialite provider for non-numeric fields
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14298 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 27, 2010
1 parent 281b971 commit e9698b2de2b3dda6a822bad6377d89d68d3abcb5
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/providers/spatialite/qgsspatialiteprovider.cpp
@@ -740,7 +740,7 @@ QVariant QgsSpatiaLiteProvider::minimumValue( int index )
else
{
// returning as DOUBLE
return minValue.toDouble();
return convertValue( fld.type(), minValue );
}

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

error:

0 comments on commit e9698b2

Please sign in to comment.