diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-08 14:13:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-09 16:57:56 +0100 |
commit | 55b305e21f103b74669a31b6dbed8596ecc3ca09 (patch) | |
tree | 884a5b657425a1161edf93e4ca04d98dfc9d52f8 /sw | |
parent | 3edfc84c7a1df53ccea921e2dc4e42088bafcb0c (diff) |
fetch/set/clear primary selection without intermediate vcl::Window
the intermediate layer doesn't do anything useful
Change-Id: I00564f43db8914445ea4013c6f387c7d7c783427
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112170
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index 802c726389a5..f0888e2b18ce 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -4182,7 +4182,7 @@ void SwTransferable::CreateSelection( SwWrtShell& rSh, pNew->m_pCreatorView = _pCreatorView; pMod->m_pXSelection = pNew.get(); - pNew->CopyToSelection( rSh.GetWin() ); + pNew->CopyToPrimarySelection(); } void SwTransferable::ClearSelection( SwWrtShell& rSh, @@ -4193,7 +4193,7 @@ void SwTransferable::ClearSelection( SwWrtShell& rSh, ((!pMod->m_pXSelection->m_pWrtShell) || (pMod->m_pXSelection->m_pWrtShell == &rSh)) && (!_pCreatorView || (pMod->m_pXSelection->m_pCreatorView == _pCreatorView)) ) { - TransferableHelper::ClearSelection( rSh.GetWin() ); + TransferableHelper::ClearPrimarySelection(); } } |