[Libreoffice-commits] core.git: sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 19 09:51:56 UTC 2019


 sc/source/ui/view/gridwin.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 52a3f07daf2d73f01e7ffd6dfa3d85ad22a8ed6b
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Nov 18 12:28:01 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Nov 19 10:51:12 2019 +0100

    Related: tdf#125917 remove active editing when we want to replace contents
    
    this addresses comment #6 so that the chosen value is entered in the cell
    
    Change-Id: I3b45301e00b2f79038e88c926f15babd49dcc2bf
    Reviewed-on: https://gerrit.libreoffice.org/83085
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 5ff358d7fc6b..45f5181ef243 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -1237,6 +1237,11 @@ void ScGridWindow::FilterSelect( sal_uLong nSel )
 
 void ScGridWindow::ExecDataSelect( SCCOL nCol, SCROW nRow, const OUString& rStr )
 {
+    ScModule* pScMod = SC_MOD();
+    ScInputHandler* pViewHdl = pScMod->GetInputHdl(pViewData->GetViewShell());
+    if (pViewHdl && pViewData->HasEditView(pViewData->GetActivePart()))
+        pViewHdl->CancelHandler();
+
     SCTAB nTab = pViewData->GetTabNo();
     ScViewFunc* pView = pViewData->GetView();
     pView->EnterData( nCol, nRow, nTab, rStr );


More information about the Libreoffice-commits mailing list