summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun4.cxx
diff options
context:
space:
mode:
authorVarun Dhall <varun.dhall@studentpartner.com>2017-06-07 01:06:46 +0530
committerMichael Stahl <mstahl@redhat.com>2017-06-08 20:36:21 +0200
commitb0f0096fbbccc212931501c5c879b65f9b0d7477 (patch)
tree977e98482d40789b75e8712305711ef8bb29c0d7 /sc/source/ui/view/viewfun4.cxx
parentc8bc5869188b15d53dfbfaa3e2b8274fd6971b01 (diff)
EditEngine: Added ODF_TEXT_FLAT paste for sc
Change-Id: I40acd32229faa9a4ec9941592a4a952b7d05ef01 Reviewed-on: https://gerrit.libreoffice.org/38464 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sc/source/ui/view/viewfun4.cxx')
-rw-r--r--sc/source/ui/view/viewfun4.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx
index f5c7db96bf7e..49631800c989 100644
--- a/sc/source/ui/view/viewfun4.cxx
+++ b/sc/source/ui/view/viewfun4.cxx
@@ -79,7 +79,8 @@ void ScViewFunc::PasteRTF( SCCOL nStartCol, SCROW nStartRow,
const css::uno::Reference< css::datatransfer::XTransferable >& rxTransferable )
{
TransferableDataHelper aDataHelper( rxTransferable );
- if ( aDataHelper.HasFormat( SotClipboardFormatId::EDITENGINE ) )
+ if ( aDataHelper.HasFormat( SotClipboardFormatId::EDITENGINE ) ||
+ aDataHelper.HasFormat( SotClipboardFormatId::EDITENGINE_ODF_TEXT_FLAT ) )
{
HideAllCursors();