Kaydet (Commit) ed6209f5 authored tarafından Eike Rathke's avatar Eike Rathke

do not parse range fragments as valid ranges

For example, "B2:" or ":B2" were accepted as valid range, with the
missing part set to A1, which resulted in a A1:B2 range.

An omitted sheet specifier always results in a valid relative sheet,
hence that flag is set, so testing flags for non-null before the final
result is available isn't sufficient.

Change-Id: I57d1b7cf71a298e7ac108b0e13aab88208f0f00c
üst be881075
...@@ -1505,7 +1505,7 @@ static sal_uInt16 lcl_ScRange_Parse_OOo( ScRange& rRange, ...@@ -1505,7 +1505,7 @@ static sal_uInt16 lcl_ScRange_Parse_OOo( ScRange& rRange,
nRes2 |= SCA_COL_ABSOLUTE; nRes2 |= SCA_COL_ABSOLUTE;
} }
} }
if (nRes1 && nRes2) if ((nRes1 & SCA_VALID) && (nRes2 & SCA_VALID))
{ {
// PutInOrder / Justify // PutInOrder / Justify
sal_uInt16 nMask, nBits1, nBits2; sal_uInt16 nMask, nBits1, nBits2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment