Commit 089044f0 authored by Mathieu Westphal's avatar Mathieu Westphal
Browse files

Fixing bug from 68c3cc53 with test inversion

parent 18772c2c
......@@ -549,7 +549,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