[Libreoffice-commits] core.git: editeng/source

Michael Stahl mstahl at redhat.com
Tue Feb 14 11:16:30 UTC 2017


 editeng/source/editeng/impedit2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6ed7a9759fdf6affdb6ec81a9aae7a3398de8d9b
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Feb 13 22:45:57 2017 +0100

    editeng: presumed copypasta in 048e30c1f8231e6cd144a9251061f6fa127b353e
    
    Doesn't make sense to check for RTF twice in a row.
    
    Change-Id: I15a384adb4d9e65770d81c414b6f24cc0a2b75e8

diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 20e2f9b..a495595 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -3484,7 +3484,7 @@ EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransfer
             SotExchange::GetFormatDataFlavor( SotClipboardFormatId::RTF, aFlavor );
             // RICHTEXT
             datatransfer::DataFlavor aFlavorRichtext;
-            SotExchange::GetFormatDataFlavor( SotClipboardFormatId::RTF, aFlavorRichtext );
+            SotExchange::GetFormatDataFlavor( SotClipboardFormatId::RICHTEXT, aFlavorRichtext );
             bool bRtfSupported = rxDataObj->isDataFlavorSupported( aFlavor );
             bool bRichtextSupported  = rxDataObj->isDataFlavorSupported( aFlavorRichtext );
             if ( bRtfSupported || bRichtextSupported )


More information about the Libreoffice-commits mailing list