Skip to content
Permalink
Browse files
Localize feature count
  • Loading branch information
m-kuhn committed May 11, 2017
1 parent 95597e3 commit 0cb8258
Showing 1 changed file with 2 additions and 2 deletions.
@@ -460,8 +460,8 @@ void QgsSymbolLegendNode::updateLabel()
mLabel = mUserLabel.isEmpty() ? mItem.label() : mUserLabel;
if ( showFeatureCount && vl )
{
long count = vl->featureCount( mItem.ruleKey() );
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" ) );
}
}

0 comments on commit 0cb8258

Please sign in to comment.