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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 9 16:09:23 UTC 2020


 sc/source/ui/view/editsh.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 5744ed4ff9f2fab5073c5f8b3153b18109cb5594
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 9 15:38:02 2020 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at 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())
                     {


More information about the Libreoffice-commits mailing list