[Libreoffice-commits] core.git: sw/source
Oliver Specht
oliver.specht at cib.de
Fri Nov 6 06:25:14 PST 2015
sw/source/core/fields/cellfml.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 0bd2a5eedd91466f97806e198b125546d256d1f8
Author: Oliver Specht <oliver.specht at cib.de>
Date: Fri Nov 6 13:33:58 2015 +0100
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/19821
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht at cib.de>
diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx
index 1eda37b..a6f2163 100644
--- a/sw/source/core/fields/cellfml.cxx
+++ b/sw/source/core/fields/cellfml.cxx
@@ -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
More information about the Libreoffice-commits
mailing list