summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-11-13 14:14:30 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-11-13 14:17:44 -0500
commit3ee088ece2abbdff699f44aa4a5b7e3c8b82aa48 (patch)
tree55bf6e064153a18eda052c5dda01b46c751c5256 /sc/source/ui/app
parent12fa9ece663f24eff44197befe546a92e6c90724 (diff)
fdo#56776: Change in formula options should cause repaint.
Else Calc would fail to update the column headers due to A1 to R1C1 change (and vise versa). Change-Id: I2c403212f5bc539aea92370e60da96f480549d6d
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/scmod.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 3a9ff2f50946..2dd115894d5f 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1068,6 +1068,11 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
if (rOptSet.HasItem(SID_SCFORMULAOPTIONS, &pItem))
{
const ScFormulaOptions& rOpt = ((const ScTpFormulaItem*)pItem)->GetFormulaOptions();
+
+ if (!pFormulaCfg || (*pFormulaCfg != rOpt))
+ // Formula options have changed. Repaint the column headers.
+ bRepaint = true;
+
SetFormulaOptions( rOpt );
if ( pDocSh )