Skip to content

Commit

Permalink
Don't consider NULL values for minimumValue() and maximumValue()
Browse files Browse the repository at this point in the history
Fix #11887
  • Loading branch information
m-kuhn committed Jan 7, 2015
1 parent 8294a22 commit 1f8dee0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsvectordataprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ void QgsVectorDataProvider::fillMinMaxCache()
{
const QVariant& varValue = attrs[*it];

if ( varValue.isNull() )
continue;

if ( flds[*it].type() == QVariant::Int )
{
int value = varValue.toInt();
Expand Down

0 comments on commit 1f8dee0

Please sign in to comment.