[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Sun Nov 24 07:43:27 PST 2013


 writerfilter/source/dmapper/DomainMapper_Impl.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit aac5c47f45bed2c8a6376280f9b5248233336500
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Nov 22 16:34:18 2013 +0100

    cp#1000016 DOCX/RTF import: fix RemoveLastParagraph() on Windows
    
    (cherry picked from commit a56bfe734a7bed40a175e0eeb7e86e7006a83f83)
    
    Signed-off-by: Andras Timar <andras.timar at collabora.com>
    
    Conflicts:
    	sw/qa/extras/rtfimport/rtfimport.cxx
    	writerfilter/source/dmapper/DomainMapper_Impl.cxx
    
    Change-Id: I3f9d69ddbb2144c60a724e4242128b65ae167455
    Signed-off-by: Andras Timar <andras.timar at collabora.com>

diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 45cc5fe..ded106d 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -313,7 +313,11 @@ void DomainMapper_Impl::RemoveLastParagraph( )
             xCursor->goLeft( 1, true );
             // If this is a text on a shape, possibly the text has the trailing
             // newline removed already.
+#if defined(UNX)
             if (xCursor->getString() == "\n")
+#else
+            if (xCursor->getString() == "\r\n")
+#endif
                 xCursor->setString(OUString());
         }
     }


More information about the Libreoffice-commits mailing list