[Libreoffice-bugs] [Bug 137713] crash in debug build editing matrix formula

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Oct 24 09:46:05 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=137713

--- Comment #4 from Julien Nabet <serval2412 at yahoo.fr> ---
I gave a try with this patch:
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 1632ce1f3e09..cf1aaaf272e3 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);

It doesn't crash but when selecting another cell in the matrix once I got the
expected error popup message "You cannot change only part of an array.", the
cell is blank.
If I select a cell which is not included in the matrix and select again a cell
in the matrix, the formula appears again.
With LO Debian package 7.0.2.2, the formula is always present.

(I also tried with "bool bClickOnSelection = true;", I got the same.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201024/4afc8db2/attachment.htm>


More information about the Libreoffice-bugs mailing list