https://bugs.documentfoundation.org/show_bug.cgi?id=143749
--- Comment #4 from Julien Nabet <[email protected]> --- 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.
