Commit 4421cbad authored by Mathieu Westphal's avatar Mathieu Westphal Committed by David Gobbi
Browse files

Fixing bug from 5b6e9c49 with test inversion

parent 836fc076
......@@ -550,7 +550,7 @@ PyObject *PyVTKObject_FromPointer(
// Check the type of the newly-created object
const char *newclassname = ptr->GetClassName();
if (newclassname == classname)
if (std::string(newclassname) != classname)
PyVTKClass *newclass = vtkPythonUtil::FindClass(newclassname);
if (newclass)
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