Kaydet (Commit) 227e0a91 authored tarafından Eike Rathke's avatar Eike Rathke Kaydeden (comit) Andras Timar

tdf#92427 entire column/row reference also if both sticky parts are relative

For example, convert A1:A1048576 to A:A but not A$1:A1048576 or
A1:A$1048576

Change-Id: I7845134f79a04f7c031896d515ea1cb8050bd454
(cherry picked from commit 0ccefa0c)
üst 7000ffb2
......@@ -1502,6 +1502,25 @@ static sal_uInt16 lcl_ScRange_Parse_OOo( ScRange& rRange,
nRes2 |= SCA_COL_ABSOLUTE;
}
}
else if ((nRes1 & SCA_VALID) && (nRes2 & SCA_VALID))
{
// Flag entire column/row references so they can be displayed
// as such. If the sticky reference parts are not both
// absolute or relative, assume that the user thought about
// something we should not touch.
if (rRange.aStart.Row() == 0 && rRange.aEnd.Row() == MAXROW &&
((nRes1 & SCA_ROW_ABSOLUTE) == 0) && ((nRes2 & SCA_ROW_ABSOLUTE) == 0))
{
nRes1 |= SCA_ROW_ABSOLUTE;
nRes2 |= SCA_ROW_ABSOLUTE;
}
else if (rRange.aStart.Col() == 0 && rRange.aEnd.Col() == MAXCOL &&
((nRes1 & SCA_COL_ABSOLUTE) == 0) && ((nRes2 & SCA_COL_ABSOLUTE) == 0))
{
nRes1 |= SCA_COL_ABSOLUTE;
nRes2 |= SCA_COL_ABSOLUTE;
}
}
if (nRes1 && nRes2)
{
// PutInOrder / Justify
......
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