summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/tpsubt.cxx
diff options
context:
space:
mode:
authorjailletc36 <christophe.jaillet@wanadoo.fr>2012-11-10 11:07:54 +0100
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-11-10 10:12:25 +0000
commit0f69e050cf8e3caeff6f542c623dab1c57948e60 (patch)
tree504f44325f2ef32ae514d2baa1317d44802daa41 /sc/source/ui/dbgui/tpsubt.cxx
parente2a54eb75c6d754d48a546fda4df65fdcc19111e (diff)
Update
Change-Id: I78f7f7ae7373e00e0750abc4566c71a8b9c1640a Reviewed-on: https://gerrit.libreoffice.org/1019 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'sc/source/ui/dbgui/tpsubt.cxx')
-rw-r--r--sc/source/ui/dbgui/tpsubt.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/tpsubt.cxx b/sc/source/ui/dbgui/tpsubt.cxx
index 7ddb18e3a1af..6651afa23daf 100644
--- a/sc/source/ui/dbgui/tpsubt.cxx
+++ b/sc/source/ui/dbgui/tpsubt.cxx
@@ -275,20 +275,19 @@ void ScTpSubTotalGroup::FillListBoxes()
SCTAB nTab = pViewData->GetTabNo();
SCCOL nMaxCol = rSubTotalData.nCol2;
SCCOL col;
- sal_uInt16 i=0;
rtl::OUString aFieldName;
aLbGroup.Clear();
aLbColumns.Clear();
aLbGroup.InsertEntry( aStrNone, 0 );
- i=0;
+ sal_uInt16 i=0;
for ( col=nFirstCol; col<=nMaxCol && i<SC_MAXFIELDS; col++ )
{
pDoc->GetString( col, nFirstRow, nTab, aFieldName );
if ( aFieldName.isEmpty() )
{
- rtl::OUStringBuffer aBuf;
+ rtl::OUStringBuffer aBuf;
aBuf.append(aStrColumn);
aFieldName = aBuf.makeStringAndClear().replaceAll("%1", ScColToAlpha( col ));
}