Kaydet (Commit) c36a2bef authored tarafından Herbert Dürr's avatar Herbert Dürr

#i118735# prevent endless loop if vlookup/hlookup doesn't find anything

üst 9fda5c9e
...@@ -444,11 +444,9 @@ const ScMatrix* ScFormulaCell::GetMatrix() ...@@ -444,11 +444,9 @@ const ScMatrix* ScFormulaCell::GetMatrix()
{ {
if ( pDocument->GetAutoCalc() ) if ( pDocument->GetAutoCalc() )
{ {
if( IsDirtyOrInTableOpDirty()
// Was stored !bDirty but an accompanying matrix cell was bDirty? // Was stored !bDirty but an accompanying matrix cell was bDirty?
// => we need to get the matrix. || (!bDirty && cMatrixFlag == MM_FORMULA && !aResult.GetMatrix().Is()))
if (!bDirty && cMatrixFlag == MM_FORMULA && !aResult.GetMatrix().Is())
bDirty = sal_True;
if ( IsDirtyOrInTableOpDirty() )
Interpret(); Interpret();
} }
return aResult.GetMatrix(); return aResult.GetMatrix();
......
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