summaryrefslogtreecommitdiff
path: root/sc/inc/table.hxx
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2023-09-12 19:17:47 +0200
committerTomaž Vajngerl <quikee@gmail.com>2023-10-11 00:05:52 +0200
commitcb46ad4c4602fbb6aeab482e9370e31495e12cfe (patch)
tree0ec9ab9ffb073519e0ac79164ebfe7fcd841d906 /sc/inc/table.hxx
parent6cfd36a392ec3710304ff3df3cb0f42e0d8b53d9 (diff)
tdf#156815 Reset solver settings when a sheet is renamed
When a sheet is renamed, the SolverSettings object needs to be reset so that the updated references of the named ranges are reloaded the next time the Solver dialog is opened. Change-Id: I8d501bb5b52f6a69bc899a62863893744d80dc69 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156872 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r--sc/inc/table.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 34e0f9d27784..68b4c614c68b 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -451,6 +451,10 @@ public:
SC_DLLPUBLIC std::shared_ptr<sc::SolverSettings> GetSolverSettings();
+ // tdf#156815 Sets the solver settings object to nullptr to force reloading Solver settings the
+ // next time the dialog is opened. This is required when sheets are renamed
+ void ResetSolverSettings() { m_pSolverSettings.reset(); }
+
/**
* Takes ownership of pCell
*