summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2014-02-04 20:05:15 +0100
committerAndras Timar <andras.timar@collabora.com>2014-02-04 20:07:19 +0100
commit57f10ec58c5be97ca7f66850c53a0d04c9885942 (patch)
tree5c6edf81866fe18c9978937ed9121d6949731489 /sw
parentUse CompileFormulaContext in CompileDBFormula() and CalcAfterLoad(). (diff)
downloadcore-57f10ec58c5be97ca7f66850c53a0d04c9885942.tar.gz
core-57f10ec58c5be97ca7f66850c53a0d04c9885942.zip
fdo#74489 replace '\n' to ' ' in fields (e.g. multiline headings)
Change-Id: I1ce125e459dfcf22adef85efac344ceb320812a2
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/fields/chpfld.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/fields/chpfld.cxx b/sw/source/core/fields/chpfld.cxx
index b878ccd38dd4..e7fe5205eba3 100644
--- a/sw/source/core/fields/chpfld.cxx
+++ b/sw/source/core/fields/chpfld.cxx
@@ -34,7 +34,7 @@ namespace
OUString removeControlChars(OUString sIn)
{
- OUStringBuffer aBuf(sIn);
+ OUStringBuffer aBuf(sIn.replace('\n', ' '));
sal_Int32 nLen = aBuf.getLength();
for (sal_Int32 i = 0; i < nLen; ++i)
{