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
This commit is contained in:
Kohei Yoshida
2012-11-13 14:14:30 -05:00
parent 12fa9ece66
commit 3ee088ece2

View File

@@ -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 )