summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/tpsubt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/dbgui/tpsubt.cxx')
-rw-r--r--sc/source/ui/dbgui/tpsubt.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/tpsubt.cxx b/sc/source/ui/dbgui/tpsubt.cxx
index 510f3485a1f9..ea24d6c5f039 100644
--- a/sc/source/ui/dbgui/tpsubt.cxx
+++ b/sc/source/ui/dbgui/tpsubt.cxx
@@ -288,11 +288,9 @@ void ScTpSubTotalGroup::FillListBoxes()
pDoc->GetString( col, nFirstRow, nTab, aFieldName );
if ( aFieldName.isEmpty() )
{
- rtl::OUStringBuffer aBuf;
+ rtl::OUStringBuffer aBuf;
aBuf.append(aStrColumn);
- aBuf.append(sal_Unicode(' '));
- aBuf.append(ScColToAlpha(col));
- aFieldName = aBuf.makeStringAndClear();
+ aFieldName = aBuf.makeStringAndClear().replaceAll("%1", ScColToAlpha( col ));
}
nFieldArr[i] = col;
aLbGroup.InsertEntry( aFieldName, i+1 );