summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-11-05 18:27:11 +0100
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-11-08 07:28:03 -0600
commit18ac69e874ad526a3b8d63702a062cc394367a58 (patch)
treec304f46be6164308118f3d5d73f85a110ff255aa
parent8371cd6cee123d94b0b4b60b0d5b2d3795338fbe (diff)
"%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 (cherry picked from commit 2d793b1a7f08e2f42a8e9bd96b7470e15784f7cf) Reviewed-on: https://gerrit.libreoffice.org/6591 Reviewed-by: Ivan Timofeev <timofeev.i.s@gmail.com> Tested-by: Ivan Timofeev <timofeev.i.s@gmail.com>
-rw-r--r--sc/source/ui/dbgui/filtdlg.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx
index 1d6114594d4e..61f5ecb66299 100644
--- a/sc/source/ui/dbgui/filtdlg.cxx
+++ b/sc/source/ui/dbgui/filtdlg.cxx
@@ -490,9 +490,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 ));
}
aLbField1.InsertEntry( aFieldName, i );
aLbField2.InsertEntry( aFieldName, i );