vcl/source/window/seleng.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2d154d55db925dfa20358faa0302d4d942496aee
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Feb 9 16:50:22 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Feb 9 18:43:50 2021 +0100

    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 <lpra...@collabora.com>
    Tested-by: Jenkins

diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx
index 8c4d27a26f9f..017ae30b8062 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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to