Kaydet (Commit) 849df784 authored tarafından Oliver Specht's avatar Oliver Specht Kaydeden (comit) Andras Timar

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>
(cherry picked from commit 0bd2a5ee)
Reviewed-on: https://gerrit.libreoffice.org/19826Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
(cherry picked from commit 74d6d268)
üst aedecad8
......@@ -366,8 +366,10 @@ void SwTableFormula::_MakeFormula( const SwTable& rTable, OUString& rNewStr,
// calculate the value of the box
if ( pSttBox->getRowSpan() >= 1 )
{
rNewStr += "(";
rNewStr += pCalcPara->rCalc.GetStrResult(
pSttBox->GetValue( *pCalcPara ), false );
rNewStr += ")";
}
}
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