Kaydet (Commit) 1556dbc4 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#74453: Only adjust tokens for top formula cells of formula group.

Change-Id: Id04387dffac271b3d617da0fbc19c862c929d60a
üst ac5682aa
...@@ -3023,6 +3023,10 @@ void ScFormulaCell::UpdateInsertTabAbs(SCTAB nTable) ...@@ -3023,6 +3023,10 @@ void ScFormulaCell::UpdateInsertTabAbs(SCTAB nTable)
if (pDocument->IsClipOrUndo()) if (pDocument->IsClipOrUndo())
return; return;
bool bAdjustCode = !mxGroup || mxGroup->mpTopCell == this;
if (!bAdjustCode)
return;
pCode->Reset(); pCode->Reset();
ScToken* p = static_cast<ScToken*>(pCode->GetNextReferenceRPN()); ScToken* p = static_cast<ScToken*>(pCode->GetNextReferenceRPN());
while (p) while (p)
...@@ -3045,6 +3049,10 @@ bool ScFormulaCell::TestTabRefAbs(SCTAB nTable) ...@@ -3045,6 +3049,10 @@ bool ScFormulaCell::TestTabRefAbs(SCTAB nTable)
if (pDocument->IsClipOrUndo()) if (pDocument->IsClipOrUndo())
return false; return false;
bool bAdjustCode = !mxGroup || mxGroup->mpTopCell == this;
if (!bAdjustCode)
return false;
bool bRet = false; bool bRet = false;
pCode->Reset(); pCode->Reset();
ScToken* p = static_cast<ScToken*>(pCode->GetNextReferenceRPN()); ScToken* p = static_cast<ScToken*>(pCode->GetNextReferenceRPN());
......
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