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

Eike Rathke erack at redhat.com
Tue Jun 30 05:34:46 PDT 2015


 sc/source/core/tool/address.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 07cd14f1e3ee718e56d063db8c331bec173f4408
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Jun 30 14:30:20 2015 +0200

    tdf#92426 explicitly set valid row/col for entire col/row references
    
    ... for callers that individually check for them, like
    ScRange::ParseAny()
    
    Change-Id: I23fc2c178a9c89b59f99f2fb86223324b7e5d378

diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index 0af90d6..fa34c64 100644
--- a/sc/source/core/tool/address.cxx
+++ b/sc/source/core/tool/address.cxx
@@ -1491,15 +1491,15 @@ static sal_uInt16 lcl_ScRange_Parse_OOo( ScRange& rRange,
                 {
                     rRange.aStart.SetRow(0);
                     rRange.aEnd.SetRow(MAXROW);
-                    nRes1 |= SCA_ROW_ABSOLUTE;
-                    nRes2 |= SCA_ROW_ABSOLUTE;
+                    nRes1 |= SCA_VALID_ROW | SCA_ROW_ABSOLUTE;
+                    nRes2 |= SCA_VALID_ROW | SCA_ROW_ABSOLUTE;
                 }
                 else
                 {
                     rRange.aStart.SetCol(0);
                     rRange.aEnd.SetCol(MAXCOL);
-                    nRes1 |= SCA_COL_ABSOLUTE;
-                    nRes2 |= SCA_COL_ABSOLUTE;
+                    nRes1 |= SCA_VALID_COL | SCA_COL_ABSOLUTE;
+                    nRes2 |= SCA_VALID_COL | SCA_COL_ABSOLUTE;
                 }
             }
             else if ((nRes1 & SCA_VALID) && (nRes2 & SCA_VALID))


More information about the Libreoffice-commits mailing list