| commit | da1c79205777357d2b22626b4985dfcd7e014236 | [log] |
|---|---|---|
| author | Noel Grandin <noelgrandin@gmail.com> | Sun Aug 08 18:34:35 2021 +0200 |
| committer | Caolán McNamara <caolanm@redhat.com> | Fri Aug 13 15:54:45 2021 +0200 |
| tree | de13db46f7bc3040cb21922a313602ca98d556db | |
| parent | 0b5243bcd938f65550ad240c8dab8a0a519d108e [diff] |
tdf#143534 Crash in Calc NLP Solver prevent dialog from being deleted out from underneath the code handling the dialog. Change-Id: Ib1ef05f897901089708188820a3330dbeabc24c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120175 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit ec867a13baaa43791d8bacf4e8c1b96aadb6aa8a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120233 Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sc/source/ui/miscdlgs/optsolver.cxx b/sc/source/ui/miscdlgs/optsolver.cxx index 3476efa..445c43a 100644 --- a/sc/source/ui/miscdlgs/optsolver.cxx +++ b/sc/source/ui/miscdlgs/optsolver.cxx
@@ -507,6 +507,7 @@ bool ScOptSolverDlg::IsRefInputMode() const IMPL_LINK(ScOptSolverDlg, BtnHdl, weld::Button&, rBtn, void) { auto xKeepAlive = shared_from_this(); if (&rBtn == m_xBtnSolve.get() || &rBtn == m_xBtnClose.get()) { bool bSolve = ( &rBtn == m_xBtnSolve.get() );