Kaydet (Commit) 11cfcf40 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Don't overwrite bCalcAll when it's already set & remove SetCompile().

Change-Id: Ieaf84e8d36efa8314729903be029f83c31bcbdf3
üst 56bb7744
...@@ -2160,7 +2160,6 @@ bool ScColumn::CompileErrorCells(sal_uInt16 nErrCode) ...@@ -2160,7 +2160,6 @@ bool ScColumn::CompileErrorCells(sal_uInt16 nErrCode)
continue; continue;
pFCell->GetCode()->SetCodeError(0); pFCell->GetCode()->SetCodeError(0);
pFCell->SetCompile(true);
OUStringBuffer aBuf; OUStringBuffer aBuf;
pFCell->GetFormula(aBuf, pDocument->GetGrammar()); pFCell->GetFormula(aBuf, pDocument->GetGrammar());
pFCell->Compile(aBuf.makeStringAndClear(), false, pDocument->GetGrammar()); pFCell->Compile(aBuf.makeStringAndClear(), false, pDocument->GetGrammar());
......
...@@ -1327,7 +1327,8 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet ) ...@@ -1327,7 +1327,8 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
// Re-compile cells with name error, and recalc if at least one cell // Re-compile cells with name error, and recalc if at least one cell
// has been re-compiled. In the future we may want to find a way to // has been re-compiled. In the future we may want to find a way to
// recalc only those that are affected. // recalc only those that are affected.
bCalcAll = pDoc->CompileErrorCells(ScErrorCodes::errNoName); if (pDoc->CompileErrorCells(ScErrorCodes::errNoName))
bCalcAll = true;
} }
if ( pDoc && bCalcAll ) if ( pDoc && bCalcAll )
......
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