diff options
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/lib/init.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 85ed95d17dc6..8f12ee2b8d00 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1009,14 +1009,7 @@ static bool doc_paste(LibreOfficeKitDocument* pThis, const char* pMimeType, cons uno::Reference<datatransfer::XTransferable> xTransferable(new LOKTransferable(pMimeType, pData, nSize)); uno::Reference<datatransfer::clipboard::XClipboard> xClipboard(new LOKClipboard()); xClipboard->setContents(xTransferable, uno::Reference<datatransfer::clipboard::XClipboardOwner>()); - vcl::Window* pWindow = pDoc->getWindow(); - if (!pWindow) - { - gImpl->maLastExceptionMsg = "Document did not provide a window"; - return false; - } - - pWindow->SetClipboard(xClipboard); + pDoc->setClipboard(xClipboard); if (!pDoc->isMimeTypeSupported()) { if (gImpl) |