Blame SOURCES/0235-sw-tiled-rendering-don-t-offer-HTML-paste-for-shape-.patch

f325b2
From a4c1fef85d4d97c934eb3927b3aef56a397bb80c Mon Sep 17 00:00:00 2001
f325b2
From: Miklos Vajna <vmiklos@collabora.co.uk>
f325b2
Date: Mon, 26 Oct 2015 15:39:28 +0100
f325b2
Subject: [PATCH 235/398] sw tiled rendering: don't offer HTML paste for shape
f325b2
 text
f325b2
f325b2
Change-Id: Icd6df15347c48a5e42860092f4ee664e3a3d5699
f325b2
(cherry picked from commit c791bef561dcf38a4b47dd06534914f7c28ae67e)
f325b2
---
f325b2
 sw/source/uibase/uno/unotxdoc.cxx | 7 +++++++
f325b2
 1 file changed, 7 insertions(+)
f325b2
f325b2
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
f325b2
index 68ec3df2a9c0..b50096bbbaa8 100644
f325b2
--- a/sw/source/uibase/uno/unotxdoc.cxx
f325b2
+++ b/sw/source/uibase/uno/unotxdoc.cxx
f325b2
@@ -3204,6 +3204,13 @@ bool SwXTextDocument::isMimeTypeSupported()
f325b2
         return false;
f325b2
 
f325b2
     TransferableDataHelper aDataHelper(TransferableDataHelper::CreateFromSystemClipboard(&pWrtShell->GetView().GetEditWin()));
f325b2
+    if (SdrView* pSdrView = pWrtShell->GetDrawView())
f325b2
+    {
f325b2
+        if (pSdrView->GetTextEditObject())
f325b2
+            // Editing shape text
f325b2
+            return EditEngine::HasValidData(aDataHelper.GetTransferable());
f325b2
+    }
f325b2
+
f325b2
     return aDataHelper.GetXTransferable().is() && SwTransferable::IsPaste(*pWrtShell, aDataHelper);
f325b2
 }
f325b2
 
f325b2
-- 
f325b2
2.12.0
f325b2