summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2014-02-04 20:05:15 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2014-02-06 15:19:54 +0000
commit107241c5e2a7b08bab676732ed0185fa843df025 (patch)
tree3007c1bd7ff8e41a03301f5467e0e89e7fe75284
parent47350a7466656bc5d34f17dc3f5eb4a673131fba (diff)
fdo#74489 replace '\n' to ' ' in fields (e.g. multiline headings)
Change-Id: I1ce125e459dfcf22adef85efac344ceb320812a2 Reviewed-on: https://gerrit.libreoffice.org/7860 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-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)
{