"%1 is replaced to column letter" ... so do it

In StandardFilter dialog when not using column headers the field names
were displayed as "Column %1 A" instead of "Column A".

Change-Id: I29216eaa6b98e4a786f77d47ef20135e15d7d45a
This commit is contained in:
Eike Rathke
2013-11-05 18:27:11 +01:00
parent 603e933856
commit 2d793b1a7f

View File

@@ -463,9 +463,7 @@ void ScFilterDlg::FillFieldLists()
{
OUStringBuffer aBuf;
aBuf.append(aStrColumn);
aBuf.append(sal_Unicode(' '));
aBuf.append(ScColToAlpha(col));
aFieldName = aBuf.makeStringAndClear();
aFieldName = aBuf.makeStringAndClear().replaceAll("%1", ScColToAlpha( col ));
}
pLbField1->InsertEntry( aFieldName, i );
pLbField2->InsertEntry( aFieldName, i );