mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix ptgList conversion
This commit is contained in:
@ -206,8 +206,13 @@ public:
|
||||
switch (rel_info)
|
||||
{
|
||||
case rel_Present:
|
||||
colFirst = (columnFirst >> 2) << 2;
|
||||
colLast = (columnLast >> 2) << 2;
|
||||
SETBITS(colFirst, 0, 13, columnFirst);
|
||||
SETBIT(colFirst, 14, columnFirstRelative);
|
||||
SETBIT(colFirst, 15, rowFirstRelative);
|
||||
|
||||
SETBITS(colLast, 0, 13, columnLast);
|
||||
SETBIT(colLast, 14, columnLastRelative);
|
||||
SETBIT(colLast, 15, rowLastRelative);
|
||||
break;
|
||||
case rel_Absent:
|
||||
colFirst = columnFirst;
|
||||
|
||||
@ -512,16 +512,18 @@ const bool SyntaxPtg::extract_PtgList(std::wstring::const_iterator& first, std::
|
||||
ptgList.rowType = 0x01;
|
||||
}
|
||||
else if (insider == L"[#Headers]")
|
||||
{
|
||||
if (boost::regex_search(first, last, results_1, reg_inside_table2))
|
||||
{ auto tempResults = results_1;
|
||||
if (boost::regex_search(first, last, tempResults, reg_inside_table2))
|
||||
{
|
||||
if (results_1.str(0) == L"[#Headers],[#Data]")
|
||||
if (tempResults.str(0) == L"[#Headers],[#Data]")
|
||||
{
|
||||
ptgList.rowType = 0x06;
|
||||
results_1 = tempResults;
|
||||
}
|
||||
}
|
||||
else
|
||||
ptgList.rowType = 0x02;
|
||||
|
||||
}
|
||||
else if (insider == L"[#Totals]")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user