diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-09 16:50:22 +0000 |
---|---|---|
committer | Pranam Lashkari <lpranam@collabora.com> | 2021-02-11 13:21:18 +0100 |
commit | 7f832dbb5bc585acf5d1855cc5349599c077c7b5 (patch) | |
tree | acbd857af8a0645ae0558b3d5d78717274c34136 | |
parent | c591ae91b25fd69e6424434b92894c57671253ca (diff) |
Revert "on SelMouseButtonDown check if window pointer is not null"
because there is no pWin for the cases where an EditEngine is
hosted in a native widget, e.g. comment in a sidebar in writer
or format header/footer in calc's format page, header/footer, edit...
and with change applied clicking doesn't move the cursor
This reverts commit 0a2fa32f8756b3c99975df6d98736a8e9abb625a.
Change-Id: Ie1da24d22b6d298f0c074f7bf187c5d891b78368
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110648
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 2d154d55db925dfa20358faa0302d4d942496aee)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110677
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-rw-r--r-- | vcl/source/window/seleng.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx index 85719192aedb..41d0d5f89ec9 100644 --- a/vcl/source/window/seleng.cxx +++ b/vcl/source/window/seleng.cxx @@ -115,7 +115,7 @@ void SelectionEngine::CursorPosChanging( bool bShift, bool bMod1 ) bool SelectionEngine::SelMouseButtonDown( const MouseEvent& rMEvt ) { nFlags &= ~SelectionEngineFlags::CMDEVT; - if ( !pFunctionSet || rMEvt.GetClicks() > 1 || !pWin ) + if ( !pFunctionSet || rMEvt.GetClicks() > 1 ) return false; sal_uInt16 nModifier = rMEvt.GetModifier() | nLockedMods; |