[Libreoffice-commits] .: Branch 'distro/suse/suse-3.6' - sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 20 08:14:36 PST 2012


 sc/source/ui/app/scmod.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit daeb7de41e8bf4a289e311c2a08c5f3e008ba53d
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Tue Nov 13 14:14:30 2012 -0500

    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
    Reviewed-on: https://gerrit.libreoffice.org/1049
    Reviewed-by: Noel Power <noel.power at suse.com>
    Tested-by: Noel Power <noel.power at suse.com>

diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 2635cb8..46e9140 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1076,6 +1076,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 )


More information about the Libreoffice-commits mailing list