Kaydet (Commit) b435ca9e authored tarafından Eike Rathke's avatar Eike Rathke

Resolves: tdf#88786 correct matrix sub operation

Change-Id: Ib5ce2ffe17cc34e0b3f04ebc06ea392707b7b9e6
üst c072bd1d
......@@ -1297,7 +1297,7 @@ void ScInterpreter::CalculateAddSub(bool _bSub)
}
else
{
pMat->SubAddOp(true, fVal, aString, *pResMat);
pMat->SubAddOp(false, -fVal, aString, *pResMat);
}
PushMatrix(pResMat);
}
......
......@@ -2553,12 +2553,12 @@ public:
double operator()(double nVal) const
{
return nVal - mnVal;
return mnVal - nVal;
}
double operator()(bool bVal) const
{
return (double)bVal - mnVal;
return mnVal - (double)bVal;
}
svl::SharedString operator()(const svl::SharedString&) const
......
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