[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Oct 24 20:26:11 UTC 2020
sc/source/ui/app/inputwin.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 802dc2fec107585dff333edd709a6fc399663df5
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Oct 24 20:32:24 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Oct 24 22:25:31 2020 +0200
tdf#137713 don't crash if there is no m_xEditView
Change-Id: I8b35459c7d5a704d9e2c0e2bfa4fce1aef152846
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104757
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 1632ce1f3e09..5d9012827d70 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1533,10 +1533,12 @@ bool ScTextWnd::MouseButtonDown( const MouseEvent& rMEvt )
TextGrabFocus();
}
+ bool bClickOnSelection = false;
if (m_xEditView)
+ {
m_xEditView->SetEditEngineUpdateMode( true );
-
- bool bClickOnSelection = m_xEditView->IsSelectionAtPoint(rMEvt.GetPosPixel());
+ bClickOnSelection = m_xEditView->IsSelectionAtPoint(rMEvt.GetPosPixel());
+ }
if (!bClickOnSelection)
{
rtl::Reference<TransferDataContainer> xTransferable(new TransferDataContainer);
More information about the Libreoffice-commits
mailing list