[Libreoffice-commits] .: Branch 'libreoffice-3-5-0' - sw/source

Petr Mladek pmladek at kemper.freedesktop.org
Thu Jan 26 06:29:07 PST 2012


 sw/source/filter/rtf/swparrtf.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 20196b4e7c7de25c1863e7919d205d0352616c56
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Wed Jan 25 16:33:25 2012 +0100

    fdo#43869 use the old rtf importer for paste
    
    Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
    Signed-off-by: Lubos Lunak <l.lunak at suse.cz>
    Signed-off-by: Petr Mladek <pmladek at suse.cz>

diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx
index 5378d07..2fc6756 100644
--- a/sw/source/filter/rtf/swparrtf.cxx
+++ b/sw/source/filter/rtf/swparrtf.cxx
@@ -34,6 +34,7 @@
 #include <tools/stream.hxx>
 #include <svl/itemiter.hxx>
 #include <svtools/rtftoken.h>
+#include <svtools/miscopt.hxx>
 #include <svl/intitem.hxx>
 #include <editeng/fhgtitem.hxx>
 #include <editeng/ulspitem.hxx>
@@ -161,6 +162,11 @@ sal_uLong SwRTFReader::Read( SwDoc &rDoc, const String& /*rBaseURL*/, SwPaM& /*r
 
 extern "C" SAL_DLLPUBLIC_EXPORT Reader* SAL_CALL ImportRTF()
 {
+    // Use the old rtf importer by default for paste, till the new one supports
+    // undo stack and PaM.
+    SvtMiscOptions aMiscOptions;
+    if (!aMiscOptions.IsExperimentalMode())
+        return new RtfReader();
     return new SwRTFReader();
 }
 


More information about the Libreoffice-commits mailing list