diff options
author | Eike Rathke <erack@redhat.com> | 2015-06-30 14:30:20 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-06-30 14:57:02 +0200 |
commit | 59487150df556457cb3c919b0b0ea5d6b625b185 (patch) | |
tree | 595adbdfcdc23e2cfa5fb66aac63d3d1582d9f4c | |
parent | 41c328a982bce85b83f2644b49412db4be64ce29 (diff) |
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)
-rw-r--r-- | sc/source/core/tool/address.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index 0af90d6e838a..fa34c6432293 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)) |