[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Jul 14 19:58:00 UTC 2018


 sc/source/filter/oox/formulabuffer.cxx |   21 ++++++---------------
 1 file changed, 6 insertions(+), 15 deletions(-)

New commits:
commit 095d749fcabdc2601c6dd3c519aa1aba1249a41a
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Sat Jul 14 20:40:14 2018 +0200
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Sat Jul 14 21:57:35 2018 +0200

    Remove the check for IsRecalcModeMustAfterImport(), tdf#94925 follow-up
    
    It's now superfluous as we set those cells dirty and broadcast in
    ScDocumentImport::broadcastRecalcAfterImport()
    
    Change-Id: Ia9dd4ad16c20b23ee8a1d46b69a4702b1ad4c81f
    Reviewed-on: https://gerrit.libreoffice.org/57439
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/filter/oox/formulabuffer.cxx b/sc/source/filter/oox/formulabuffer.cxx
index 53172729ac85..114a998b8832 100644
--- a/sc/source/filter/oox/formulabuffer.cxx
+++ b/sc/source/filter/oox/formulabuffer.cxx
@@ -173,11 +173,8 @@ void applySharedFormulas(
                         pCell->SetResultToken(new formula::FormulaStringToken(aSS));
                         // If we don't reset dirty, then e.g. disabling macros makes all cells
                         // that use macro functions to show #VALUE!
-                        if (!pCell->GetCode()->IsRecalcModeMustAfterImport())
-                        {
-                            pCell->ResetDirty();
-                            pCell->SetChanged(false);
-                        }
+                        pCell->ResetDirty();
+                        pCell->SetChanged(false);
                         break;
                     }
                     SAL_FALLTHROUGH;
@@ -278,11 +275,8 @@ void applyCellFormulaValues(
             case XML_n:
             {
                 pCell->SetResultDouble(rValueStr.toDouble());
-                if (!pCell->GetCode()->IsRecalcModeMustAfterImport())
-                {
-                    pCell->ResetDirty();
-                    pCell->SetChanged(false);
-                }
+                pCell->ResetDirty();
+                pCell->SetChanged(false);
             }
             break;
             case XML_str:
@@ -300,11 +294,8 @@ void applyCellFormulaValues(
                 {
                     svl::SharedString aSS = rStrPool.intern(rValueStr);
                     pCell->SetResultToken(new formula::FormulaStringToken(aSS));
-                    if (!pCell->GetCode()->IsRecalcModeMustAfterImport())
-                    {
-                        pCell->ResetDirty();
-                        pCell->SetChanged(false);
-                    }
+                    pCell->ResetDirty();
+                    pCell->SetChanged(false);
                 }
             break;
             default:


More information about the Libreoffice-commits mailing list