Skip to content

Commit

Permalink
fix maximum field value calculation in vector layer (addresses #7193)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 13, 2013
1 parent 99dd1da commit 6262f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -4218,7 +4218,7 @@ QVariant QgsVectorLayer::maximumValue( int index )
QgsVectorLayer* vl = dynamic_cast<QgsVectorLayer*>( QgsMapLayerRegistry::instance()->mapLayer( join->joinLayerId ) );
Q_ASSERT( vl );

return vl->maximumValue( index );
return vl->maximumValue( sourceLayerIndex );
}
else if ( origin == QgsFields::OriginEdit )
{
Expand Down

0 comments on commit 6262f31

Please sign in to comment.