[Libreoffice-bugs] [Bug 143749] Inserting fontwork causes crash

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 5 19:34:42 UTC 2021


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

--- Comment #4 from Julien Nabet <serval2412 at yahoo.fr> ---
Just for the record because I wouldn't pretend it's the right fix, if I put
"pImpl->MouseButtonDown( rMEvt );" after "pImpl->m_pCursorOld =...", it doesn't
crash.

diff --git a/vcl/source/treelist/treelistbox.cxx
b/vcl/source/treelist/treelistbox.cxx
index ee4b01981007..19bff1f8ee7d 100644
--- a/vcl/source/treelist/treelistbox.cxx
+++ b/vcl/source/treelist/treelistbox.cxx
@@ -2286,12 +2286,12 @@ void SvTreeListBox::Paint(vcl::RenderContext&
rRenderContext, const tools::Recta

 void SvTreeListBox::MouseButtonDown( const MouseEvent& rMEvt )
 {
-    pImpl->MouseButtonDown( rMEvt );
-
     // tdf#143114 remember the *correct* starting entry
     pImpl->m_pCursorOld = (rMEvt.IsLeft() && (nTreeFlags &
SvTreeFlags::CHKBTN) && mnClicksToToggle > 0)
         ? GetEntry(rMEvt.GetPosPixel())
         : nullptr;
+
+    pImpl->MouseButtonDown( rMEvt );
 }

 void SvTreeListBox::MouseButtonUp( const MouseEvent& rMEvt )

-- 
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/20210805/b21a3d95/attachment.htm>


More information about the Libreoffice-bugs mailing list