Kaydet (Commit) 0bd2a5ee authored tarafından Oliver Specht's avatar Oliver Specht

tdf#94624 calculation of power operator fixed

cell values are added in parentheses to make sure negative values are handled
correctly

Change-Id: I7366493e3cd6c25607e311d4b610ef8aa704a8bb
Reviewed-on: https://gerrit.libreoffice.org/19821Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarOliver Specht <oliver.specht@cib.de>
üst eaf640d2
...@@ -366,8 +366,10 @@ void SwTableFormula::_MakeFormula( const SwTable& rTable, OUString& rNewStr, ...@@ -366,8 +366,10 @@ void SwTableFormula::_MakeFormula( const SwTable& rTable, OUString& rNewStr,
// calculate the value of the box // calculate the value of the box
if ( pSttBox->getRowSpan() >= 1 ) if ( pSttBox->getRowSpan() >= 1 )
{ {
rNewStr += "(";
rNewStr += pCalcPara->rCalc.GetStrResult( rNewStr += pCalcPara->rCalc.GetStrResult(
pSttBox->GetValue( *pCalcPara ), false ); pSttBox->GetValue( *pCalcPara ), false );
rNewStr += ")";
} }
} }
else else
......
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