diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2018-07-03 07:41:47 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-07-03 09:08:58 +0200 |
commit | e119194aeec907f3d02cb914e5afde5ac763df7c (patch) | |
tree | 89c557a1afa520a86a45519bd340f18c7c16883a /sc | |
parent | 73356ae1a5c3eba957331d66bed042edb1fc7f6d (diff) |
tdf#118452 Don't crash when multi thread calculation is disabled
...by default configuration.
Change-Id: If6075ae66537f613434dd38766324436f2426517
Reviewed-on: https://gerrit.libreoffice.org/56840
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/optdlg/tpcalc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx index 77652e6d22b5..dc9ae0e28284 100644 --- a/sc/source/ui/optdlg/tpcalc.cxx +++ b/sc/source/ui/optdlg/tpcalc.cxx @@ -183,7 +183,7 @@ void ScTpCalcOptions::Reset( const SfxItemSet* /* rCoreAttrs */ ) m_pEdPrec->SetValue(nPrec); } - m_pBtnThread->Enable(); + m_pBtnThread->Enable( !officecfg::Office::Calc::Formula::Calculation::UseThreadedCalculationForFormulaGroups::isReadOnly() ); m_pBtnThread->Check( officecfg::Office::Calc::Formula::Calculation::UseThreadedCalculationForFormulaGroups::get() ); CheckClickHdl(m_pBtnIterate); |