We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95597e3 commit 0cb8258Copy full SHA for 0cb8258
src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -460,8 +460,8 @@ void QgsSymbolLegendNode::updateLabel()
460
mLabel = mUserLabel.isEmpty() ? mItem.label() : mUserLabel;
461
if ( showFeatureCount && vl )
462
{
463
- long count = vl->featureCount( mItem.ruleKey() );
464
- mLabel += QStringLiteral( " [%1]" ).arg( count != -1 ? QString::number( count ) : tr( "N/A" ) );
+ qlonglong count = vl->featureCount( mItem.ruleKey() );
+ mLabel += QStringLiteral( " [%1]" ).arg( count != -1 ? QLocale().toString( count ) : tr( "N/A" ) );
465
}
466
467
0 commit comments