Skip to content

Commit 6262f31

Browse files
committed
fix maximum field value calculation in vector layer (addresses #7193)
1 parent 99dd1da commit 6262f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsvectorlayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4218,7 +4218,7 @@ QVariant QgsVectorLayer::maximumValue( int index )
42184218
QgsVectorLayer* vl = dynamic_cast<QgsVectorLayer*>( QgsMapLayerRegistry::instance()->mapLayer( join->joinLayerId ) );
42194219
Q_ASSERT( vl );
42204220

4221-
return vl->maximumValue( index );
4221+
return vl->maximumValue( sourceLayerIndex );
42224222
}
42234223
else if ( origin == QgsFields::OriginEdit )
42244224
{

0 commit comments

Comments
 (0)