Skip to content
Snippets Groups Projects
Commit 91b380f1 authored by Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware)
Browse files

Fix SetCanvasSelector when value is nullptr

- Reinstall UI callbacks only when the selector is non-empty and callbacks were previously installed.
parent aaeffce2
No related branches found
No related tags found
No related merge requests found
......@@ -213,7 +213,7 @@ void vtkWebAssemblyRenderWindowInteractor::SetCanvasSelector(const char* value)
}
vtkSetStringBodyMacro(CanvasSelector, value);
// add callbacks to new target
if (reInstallUICallbacks)
if (reInstallUICallbacks && value)
{
this->RegisterUICallbacks();
}
......
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