diff options
author | Oliver Specht <oliver.specht@cib.de> | 2015-11-06 13:33:58 +0100 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2015-11-06 14:24:48 +0000 |
commit | 0bd2a5eedd91466f97806e198b125546d256d1f8 (patch) | |
tree | 2d4b446e75ce0f0711cf630e8a1e314c5e92261f | |
parent | eaf640d282dd2bd8f647a510e401323da506a810 (diff) |
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@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
-rw-r--r-- | sw/source/core/fields/cellfml.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx index 1eda37bc14a8..a6f2163e5471 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 |