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

Eike Rathke erack at redhat.com
Thu Jan 23 16:57:00 PST 2014


 sc/source/core/data/formulacell.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 2d041ee46f68caf9760575d971127c27e279d2ef
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Jan 24 01:50:15 2014 +0100

    PostponedDirty also for RelName
    
    ... so HasRelNameReference() doesn't need to be checked again in
    SetDirtyIfPostponed() if already encountered.
    
    Change-Id: I79c6100fbf797d15031d52f402069c977c834f09

diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 435ff6f..d7384b9 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -2515,7 +2515,6 @@ bool ScFormulaCell::UpdateReferenceOnShift(
         // Cell may reference itself, e.g. ocColumn, ocRow without parameter
         bOnRefMove = (bValChanged || (aPos != aOldPos));
 
-    bool bHasRelName = false;
     bool bNewListening = false;
     bool bInDeleteUndo = false;
 
@@ -2530,7 +2529,7 @@ bool ScFormulaCell::UpdateReferenceOnShift(
         bInDeleteUndo = (pChangeTrack && pChangeTrack->IsInDeleteUndo());
 
         // RelNameRefs are always moved
-        bHasRelName = HasRelNameReference();
+        bool bHasRelName = HasRelNameReference();
         // Reference changed and new listening needed?
         // Except in Insert/Delete without specialties.
         bNewListening = (bRefModified || bRecompile
@@ -2566,7 +2565,7 @@ bool ScFormulaCell::UpdateReferenceOnShift(
         }
     }
 
-    if (bNeedDirty && !bHasRelName)
+    if (bNeedDirty)
     {   // Cut off references, invalid or similar?
         // Postpone SetDirty() until all listeners have been re-established in
         // Inserts/Deletes.


More information about the Libreoffice-commits mailing list