Skip to content
Snippets Groups Projects
Commit 4421cbad authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap: Committed by David Gobbi
Browse files

Fixing bug from 5b6e9c49 with test inversion

parent 836fc076
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment