summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-06-30 14:30:20 +0200
committerEike Rathke <erack@redhat.com>2015-06-30 14:33:56 +0200
commit07cd14f1e3ee718e56d063db8c331bec173f4408 (patch)
tree9c13380c08f03a27ae04f50d4a4d81ff29a126db
parenta12db8e9e1960f3f209f1b95547041681566d636 (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
-rw-r--r--sc/source/core/tool/address.cxx8
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))