Commit 5bf6e902 authored by T.J. Corona's avatar T.J. Corona

vtkFunctionParser: added support for capital 'E' in scientific notation.

This fix is in reference to bug report 0015557.
parent 1f890b9b
......@@ -1563,7 +1563,8 @@ void vtkFunctionParser::BuildInternalSubstringStructure(int beginIndex,
!((this->Function[i] == '-' || this->Function[i] == '+') &&
(this->IsElementaryOperator(this->Function[i-1]) ||
this->Function[i-1] == '(' ||
(this->Function[i-1] == 'e' && i > 1 &&
((this->Function[i-1] == 'e' || this->Function[i-1] == 'E') &&
i > 1 &&
isdigit(this->Function[i-2])))) &&
!(this->Function[i] == '.' &&
(i+1 < this->FunctionLength) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment