[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sw/source

Andras Timar andras.timar at collabora.com
Thu Feb 6 07:20:17 PST 2014


 sw/source/core/fields/chpfld.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 107241c5e2a7b08bab676732ed0185fa843df025
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue Feb 4 20:05:15 2014 +0100

    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 at documentfoundation.org>
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>

diff --git a/sw/source/core/fields/chpfld.cxx b/sw/source/core/fields/chpfld.cxx
index b878ccd..e7fe520 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)
     {


More information about the Libreoffice-commits mailing list