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

New commits:
commit 59487150df556457cb3c919b0b0ea5d6b625b185
Author: Eike Rathke <er...@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
    (cherry picked from commit 07cd14f1e3ee718e56d063db8c331bec173f4408)

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))
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to