Skip to content

Commit 0cb8258

Browse files
committed
Localize feature count
1 parent 95597e3 commit 0cb8258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/layertree/qgslayertreemodellegendnode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ void QgsSymbolLegendNode::updateLabel()
460460
mLabel = mUserLabel.isEmpty() ? mItem.label() : mUserLabel;
461461
if ( showFeatureCount && vl )
462462
{
463-
long count = vl->featureCount( mItem.ruleKey() );
464-
mLabel += QStringLiteral( " [%1]" ).arg( count != -1 ? QString::number( count ) : tr( "N/A" ) );
463+
qlonglong count = vl->featureCount( mItem.ruleKey() );
464+
mLabel += QStringLiteral( " [%1]" ).arg( count != -1 ? QLocale().toString( count ) : tr( "N/A" ) );
465465
}
466466
}
467467

0 commit comments

Comments
 (0)