From b689a929882562f3cd282f71b30167b3451047ac Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 13 Jun 2014 14:16:11 +0200 Subject: resolved fdo#79978 propagate error through DoubleArray of matrix Regression introduced with 83f77ab0661df992f241e5f9ecb1aa8f8eaeafec. Interpreter errors are transported using NaN coded doubles, using simple setNan()/isNan() to flag and ignore non-numeric values skips all error values. Change-Id: I0d3cb30262bc5ba7ee77e53a2bc45e56569fbc4b (cherry picked from commit a288bebbcec0b16e1ced09a601de5ffbb6b1bbe0) Reviewed-on: https://gerrit.libreoffice.org/9768 Reviewed-by: Kohei Yoshida Tested-by: Kohei Yoshida --- include/formula/errorcodes.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/formula/errorcodes.hxx b/include/formula/errorcodes.hxx index d178aec680bd..87dab2baa6ba 100644 --- a/include/formula/errorcodes.hxx +++ b/include/formula/errorcodes.hxx @@ -75,6 +75,10 @@ const sal_uInt16 errNotNumericString = 534; // ScInterpreter internal: jump matrix already has a result at this position, // do not overwrite in case of empty code path. const sal_uInt16 errJumpMatHasResult = 535; +// ScInterpreter internal: (matrix) element is not a numeric value, i.e. +// string or empty, to be distinguished from the general errNoValue NAN and not +// to be used as result. +const sal_uInt16 errElementNaN = 536; // Interpreter: NA() not available condition, not a real error const sal_uInt16 NOTAVAILABLE = 0x7fff; -- cgit v1.2.3