summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.co.uk>2018-05-08 14:01:47 +0530
committerDennis Francis <dennis.francis@collabora.co.uk>2018-05-08 17:25:55 +0200
commitf8b08262f9f698cb027855f089676f81b3951ab1 (patch)
tree8c38c0302d93af60b3d8211bc79759fe871ebfaa
parentc7864c54302b8d44f96359df2eca735a6e80ebb7 (diff)
interpr4.cxx: Get numformat using interpreter context
Change-Id: I112acf864e8d22714bcc0eefced640dbc8bef6a2 Reviewed-on: https://gerrit.libreoffice.org/53969 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--sc/source/core/tool/interpr4.cxx6
1 files changed, 3 insertions, 3 deletions
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;