sc/source/ui/view/editsh.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 5744ed4ff9f2fab5073c5f8b3153b18109cb5594 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Oct 9 15:38:02 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Oct 9 18:08:43 2020 +0200 EditView->GetWindow()->GetClipboard() is the same as GetSystemClipboard() so we don't really need the intermediate vcl::Window to get that Change-Id: I5fa449e46c2226f0fb84f2e230e328c4da5472ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104125 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index e076c762be1d..f3b2060c651f 100644 --- a/sc/source/ui/view/editsh.cxx +++ b/sc/source/ui/view/editsh.cxx @@ -640,8 +640,7 @@ void ScEditShell::Execute( SfxRequest& rReq ) const SvxFieldData* pField = pEditView->GetFieldAtCursor(); if (const SvxURLField* pURLField = dynamic_cast<const SvxURLField*>(pField)) { - uno::Reference<datatransfer::clipboard::XClipboard> xClipboard - = pEditView->GetWindow()->GetClipboard(); + uno::Reference<datatransfer::clipboard::XClipboard> xClipboard = GetSystemClipboard(); if (comphelper::LibreOfficeKit::isActive()) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits