[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Mon Jan 27 18:51:03 PST 2014


 sc/source/core/data/column.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7a7ef5a915f7e4f4a9a21b819ab1013d6333a8d8
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Mon Jan 27 19:08:30 2014 -0500

    fdo#69244: Avoid putting these cells in formula tree prematurely.
    
    Marking the cell dirty alone appears to be sufficient to trigger resetting
    of number format.  SetDirty() would mark it dirty *and* put the cell into
    formula tree, which would prevent proper value propagation as seen in the
    bug report.
    
    Change-Id: Ie68f996112938fe286a9bd50c38404f9df6f4ca1
    (cherry picked from commit f571104ef38ba9f7f6073e22c2374add7aa73887)
    Reviewed-on: https://gerrit.libreoffice.org/7707
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 007e9e3..8c6102f 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -2863,7 +2863,7 @@ public:
         if( (nFormat % SV_COUNTRY_LANGUAGE_OFFSET) != 0)
             pCell->SetNeedNumberFormat(false);
         else
-            pCell->SetDirty(true);
+            pCell->SetDirtyVar();
 
         pCell->CompileXML(mrProgress);
     }


More information about the Libreoffice-commits mailing list