summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/optdlg/tpcalc.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx
index 92570ea9653f..53517d81a0f0 100644
--- a/sc/source/ui/optdlg/tpcalc.cxx
+++ b/sc/source/ui/optdlg/tpcalc.cxx
@@ -82,12 +82,16 @@ std::unique_ptr<SfxTabPage> ScTpCalcOptions::Create( weld::Container* pPage, wel
return std::make_unique<ScTpCalcOptions>( pPage, pController, *rAttrSet );
}
-void ScTpCalcOptions::Reset( const SfxItemSet* /* rCoreAttrs */ )
+void ScTpCalcOptions::Reset(const SfxItemSet* rCoreAttrs)
{
sal_uInt16 d,m;
sal_Int16 y;
- *pLocalOptions = *pOldOptions;
+ pOldOptions.reset(new ScDocOptions(
+ static_cast<const ScTpCalcItem&>(rCoreAttrs->Get(
+ GetWhich(SID_SCDOCOPTIONS))).GetDocOptions()));
+
+ *pLocalOptions = *pOldOptions;
m_xBtnCase->set_active( !pLocalOptions->IsIgnoreCase() );
m_xBtnCase->set_sensitive( !officecfg::Office::Calc::Calculate::Other::CaseSensitive::isReadOnly() );