summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-07-03 07:41:47 +0200
committerAndras Timar <andras.timar@collabora.com>2018-07-04 09:02:22 +0200
commit41a780a589151afa1159403231c59c57bc8a1bc8 (patch)
treed4889606b2b0b578580692584e7116df98e2265d
parentf066b54fb4af1d3f08242d81dd08100b7266eaaf (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> (cherry picked from commit e119194aeec907f3d02cb914e5afde5ac763df7c) Reviewed-on: https://gerrit.libreoffice.org/56856
-rw-r--r--sc/source/ui/optdlg/tpcalc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx
index 4ec601a23ac6..764d55d98e57 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);