diff options
author | Eike Rathke <erack@redhat.com> | 2014-03-14 23:00:25 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-03-14 23:04:19 +0100 |
commit | 83a55e63f15a2b5f9897636bfb33a3ceb4105eba (patch) | |
tree | a1491a5b5ed4a06ae1ab2897ba6e89c25075b928 /sc/source/ui/app | |
parent | a12de5aab0c2f1553086de13a7bdb92fac81ee70 (diff) |
some formula interpreter options are document specific
Ideally they'd even be stored as document options. Future work?
Change-Id: Ida126a441ca88c35406fb66ea3722d6335e6e8e2
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 99492d195ce1..b32a280b3862 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -2162,7 +2162,14 @@ SfxItemSet* ScModule::CreateItemSet( sal_uInt16 nId ) pRet->Put( ScTpDefaultsItem( SID_SCDEFAULTSOPTIONS, GetDefaultsOptions() ) ); // TP_FORMULA - pRet->Put( ScTpFormulaItem( SID_SCFORMULAOPTIONS, GetFormulaOptions() ) ); + ScFormulaOptions aOptions = GetFormulaOptions(); + if (pDocSh) + { + ScCalcConfig aConfig( aOptions.GetCalcConfig()); + aConfig.MergeDocumentSpecific( pDocSh->GetDocument()->GetCalcConfig()); + aOptions.SetCalcConfig( aConfig); + } + pRet->Put( ScTpFormulaItem( SID_SCFORMULAOPTIONS, aOptions ) ); } return pRet; } |