Commit 5b48e4db authored by cyrush's avatar cyrush
Browse files

merge from 2.0RC: fix for problem with expr window treating non py exprs as py exprs

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@10785 18c085ea-50e0-402c-830e-de6fd14e8384
parent f397e799
......@@ -1408,6 +1408,8 @@ QvisExpressionsWindow::UpdatePythonExpression()
// Creation: Thu Feb 18 12:26:48 PST 2010
//
// Modifications:
// Cyrus Harrison,Thu Apr 8 12:40:22 PDT 2010
// Resolved issue w/ incorrectly flagging non python expressions.
//
// ****************************************************************************
bool
......@@ -1425,9 +1427,9 @@ QvisExpressionsWindow::ParsePythonExpression(const QString &expr_def,
int start_idx = -1;
if(start_idx =edef.indexOf("py(") == 0)
if(edef.indexOf("py(") == 0)
start_idx = 3;
else if (start_idx =edef.indexOf("python(") == 0)
else if (edef.indexOf("python(") == 0)
start_idx = 7;
if(start_idx == -1)
......
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