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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 13 12:19:29 UTC 2018


 sc/source/core/data/formulacell.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit f9026deba0581759146205237eb739f37463ba47
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Fri Oct 12 14:12:13 2018 +0200
Commit:     Luboš Luňák <l.lunak at collabora.com>
CommitDate: Tue Nov 13 13:19:03 2018 +0100

    don't access deleted cells
    
    This copy&pasted code that got fixed in 2926c9e40e17, so fix it as well.
    
    Change-Id: I0a038b57a428640dae8cdf17f33a2eab50b0187c
    Reviewed-on: https://gerrit.libreoffice.org/63177
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lunak at collabora.com>

diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 23d518279896..4965ea3f0e3f 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -4327,6 +4327,8 @@ struct ScDependantsCalculator
             case svSingleRef:
                 {
                     ScSingleRefData aRef = *p->GetSingleRef(); // =Sheet1!A1
+                    if( aRef.IsDeleted())
+                        return false;
                     ScAddress aRefPos = aRef.toAbs(mrPos);
 
                     if (!mrDoc.TableExists(aRefPos.Tab()))
@@ -4361,6 +4363,8 @@ struct ScDependantsCalculator
             case svDoubleRef:
                 {
                     ScComplexRefData aRef = *p->GetDoubleRef();
+                    if( aRef.IsDeleted())
+                        return false;
                     ScRange aAbs = aRef.toAbs(mrPos);
 
                     // Multiple sheet


More information about the Libreoffice-commits mailing list