[Libreoffice-commits] core.git: sc/source
Dennis Francis
dennis.francis at collabora.co.uk
Tue May 8 15:26:17 UTC 2018
sc/source/core/tool/interpr4.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit f8b08262f9f698cb027855f089676f81b3951ab1
Author: Dennis Francis <dennis.francis at collabora.co.uk>
Date: Tue May 8 14:01:47 2018 +0530
interpr4.cxx: Get numformat using interpreter context
Change-Id: I112acf864e8d22714bcc0eefced640dbc8bef6a2
Reviewed-on: https://gerrit.libreoffice.org/53969
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index d28d8138a88a..d516a631c187 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -129,7 +129,7 @@ sal_uInt32 ScInterpreter::GetCellNumberFormat( const ScAddress& rPos, ScRefCellV
FormulaError nErr;
if (rCell.isEmpty())
{
- nFormat = pDok->GetNumberFormat( rPos );
+ nFormat = pDok->GetNumberFormat( mrContext, rPos );
nErr = FormulaError::NONE;
}
else
@@ -138,7 +138,7 @@ sal_uInt32 ScInterpreter::GetCellNumberFormat( const ScAddress& rPos, ScRefCellV
nErr = rCell.mpFormula->GetErrCode();
else
nErr = FormulaError::NONE;
- nFormat = pDok->GetNumberFormat( rPos );
+ nFormat = pDok->GetNumberFormat( mrContext, rPos );
}
SetError(nErr);
@@ -150,7 +150,7 @@ double ScInterpreter::GetValueCellValue( const ScAddress& rPos, double fOrig )
{
if ( bCalcAsShown && fOrig != 0.0 )
{
- sal_uInt32 nFormat = pDok->GetNumberFormat( rPos );
+ sal_uInt32 nFormat = pDok->GetNumberFormat( mrContext, rPos );
fOrig = pDok->RoundValueAsShown( fOrig, nFormat );
}
return fOrig;
More information about the Libreoffice-commits
mailing list