diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-06 11:32:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-06 17:06:50 +0200 |
commit | 130486015f03087aa4c2c43709ce95fb494df44b (patch) | |
tree | fdfc094a8ebc20e4a2e511928c7b53e4bc733475 /sc | |
parent | ed7271d9d44fe1a0195ae669644f23c01b6960d8 (diff) |
use Widget::get_clipboard
there's no different from GetSystemClipboard except potentially for
the libreofficekit case where per-frame clipboards are possible
Change-Id: I3173e39f81a03a7cbe114ebca6020d5ed36a659a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115179
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index 68a186f1dd5d..451b73a9a208 100644 --- a/sc/source/ui/view/editsh.cxx +++ b/sc/source/ui/view/editsh.cxx @@ -637,8 +637,8 @@ 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 = GetSystemClipboard(); - + uno::Reference<datatransfer::clipboard::XClipboard> xClipboard + = pEditView->GetClipboard(); vcl::unohelper::TextDataObject::CopyStringTo(pURLField->GetURL(), xClipboard, SfxViewShell::Current()); } } |