diff options
Diffstat (limited to 'sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx')
-rw-r--r-- | sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx b/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx index c5c857ee35d5..d4601ff5a4d7 100644 --- a/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx @@ -57,8 +57,7 @@ static const StatisticCalculation lclCalcDefinitions[] = static const OUString strWildcardRange("%RANGE%"); static const OUString strWildcardNumber("%NUMBER%"); -static const OUString strColumnLabelTemplate("Column %NUMBER%"); -static const OUString strRowLabelTemplate("Row %NUMBER%"); + } ScDescriptiveStatisticsDialog::ScDescriptiveStatisticsDialog( @@ -99,9 +98,10 @@ ScRange ScDescriptiveStatisticsDialog::ApplyOutput(ScDocShell* pDocShell) for( ; pIterator->hasNext(); pIterator->next() ) { if (mGroupedBy == BY_COLUMN) - aTemplate.setTemplate(strColumnLabelTemplate); + aTemplate.setTemplate(SC_STRLOAD(RID_STATISTICS_DLGS, STR_COLUMN_LABEL_TEMPLATE)); else - aTemplate.setTemplate(strRowLabelTemplate); + aTemplate.setTemplate(SC_STRLOAD(RID_STATISTICS_DLGS, STR_ROW_LABEL_TEMPLATE)); + aTemplate.applyNumber(strWildcardNumber, pIterator->index() + 1); aOutput.writeBoldString(aTemplate.getTemplate()); aOutput.nextColumn(); |