From 55b305e21f103b74669a31b6dbed8596ecc3ca09 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 8 Mar 2021 14:13:16 +0000 Subject: fetch/set/clear primary selection without intermediate vcl::Window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- sw/source/uibase/dochdl/swdtflvr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') 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(); } } -- cgit