Commit 4e799d29 authored by whitlocb's avatar whitlocb
Browse files

Fix filter metadata in Threshold operator in cause upper/lower bounds are empty.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23132 18c085ea-50e0-402c-830e-de6fd14e8384
parent e08050e3
...@@ -207,16 +207,19 @@ avtThresholdPluginFilter::UpdateDataObjectInfoCB(avtDataObject_p &input, ...@@ -207,16 +207,19 @@ avtThresholdPluginFilter::UpdateDataObjectInfoCB(avtDataObject_p &input,
int nvars = (int)(t.GetListedVarNames().size()); int nvars = (int)(t.GetListedVarNames().size());
for(int i = 0; i < nvars; ++i) for(int i = 0; i < nvars; ++i)
{ {
SNPRINTF(tmp, 200, "%lg < ", t.GetLowerBounds()[i]); if(i < t.GetLowerBounds().size() && i < t.GetUpperBounds().size())
params += tmp; {
if(t.GetListedVarNames()[i] == "default") SNPRINTF(tmp, 200, "%lg < ", t.GetLowerBounds()[i]);
params += t.GetDefaultVarName(); params += tmp;
else if(t.GetListedVarNames()[i] == "default")
params += t.GetListedVarNames()[i]; params += t.GetDefaultVarName();
SNPRINTF(tmp, 200, " < %lg", t.GetUpperBounds()[i]); else
params += tmp; params += t.GetListedVarNames()[i];
if(i < nvars-1) SNPRINTF(tmp, 200, " < %lg", t.GetUpperBounds()[i]);
params += ", "; params += tmp;
if(i < nvars-1)
params += ", ";
}
} }
outAtts.AddFilterMetaData("Threshold", params); outAtts.AddFilterMetaData("Threshold", params);
} }
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