Commit cca2301b authored by loring's avatar loring
Browse files

work around exception in volume plot when the plotted

vriable is not in the database, eg when it's generated by
an operator.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@27507 18c085ea-50e0-402c-830e-de6fd14e8384
parent 4c136e55
......@@ -576,6 +576,12 @@ bool GetLogicalBounds(avtDataObject_p input,int &width,int &height, int &depth)
//
// Modifications:
//
// Burlen Loring, Mon Oct 5 06:42:17 PDT 2015
// Catch the exception that can occur when using
// an operator that produces a variable that doesn't
// exist in the database.
//
// ****************************************************************************
bool DataMustBeResampled(avtDataObject_p input)
{
......@@ -584,7 +590,14 @@ bool DataMustBeResampled(avtDataObject_p input)
// likely other cases.
int width,height,depth;
return GetLogicalBounds(input,width,height,depth);
try
{
return GetLogicalBounds(input,width,height,depth);
}
catch(...)
{
return false;
}
}
// ****************************************************************************
......
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