diff options
author | Eike Rathke <erack@redhat.com> | 2016-01-07 19:24:08 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-01-08 12:34:03 +0000 |
commit | 2d877037bbf97aafed9d355a93dd3e915d80e74b (patch) | |
tree | 572abd2b51f9b509d8f1d428c126cdad665e2184 /formula | |
parent | 57ee45cd6b7655bbd04972287802fcf300e1a933 (diff) |
Have two releases be able to read ISOWEEKNUM first.
Change-Id: I7ea8141043d18076a65396374dec40a806c8ab6a
(cherry picked from commit 7994b77819a5de7a6da46ab01386883559e7a7d1)
Reviewed-on: https://gerrit.libreoffice.org/21229
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 526f83f458df..cf44e924d98c 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1290,6 +1290,12 @@ void FormulaCompiler::Factor() pFacToken->SetByte( nSepCount ); if (nSepCount == 2) { + /* XXX TODO FIXME: activate this conversion to ISOWEEKNUM + * when at least two releases can actually handle the real + * ISOWEEKNUM with one parameter, i.e. for 5.3 or 5.2 if + * 5.0.5 is patched. Until then unconditionally use the + * WEEKNUM_OOO compatibility function. */ +#if 0 // An old mode!=1 indicates ISO week, remove argument if // literal double value and keep function. Anything else // can not be resolved, there exists no "like ISO but week @@ -1312,6 +1318,11 @@ void FormulaCompiler::Factor() // compatibility function. pFacToken->NewOpCode( ocWeeknumOOo, FormulaToken::PrivateAccess()); } +#else + (void) nSepPos; + // Use compatibility function. + pFacToken->NewOpCode( ocWeeknumOOo, FormulaToken::PrivateAccess()); +#endif } PutCode( pFacToken ); } |