Commit f4551744 authored by Mathieu Westphal's avatar Mathieu Westphal Committed by Kitware Robot
Browse files

Merge topic 'Fix68c3cc53Bug'

089044f0 Fixing bug from 68c3cc53

 with test inversion
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !944
parents 18772c2c 089044f0
......@@ -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