diff options
author | Eike Rathke <erack@redhat.com> | 2014-06-13 14:16:11 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-06-13 14:21:36 +0200 |
commit | a288bebbcec0b16e1ced09a601de5ffbb6b1bbe0 (patch) | |
tree | f530349350263dd548433026c9bcfcc90a00c619 /include | |
parent | c9d037e5e8e5850e9c69372580e7a506b573fc2a (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/formula/errorcodes.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/formula/errorcodes.hxx b/include/formula/errorcodes.hxx index cea578786014..a92372c6681d 100644 --- a/include/formula/errorcodes.hxx +++ b/include/formula/errorcodes.hxx @@ -74,6 +74,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; |