diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index a79e4b4..f91be5a 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -276,7 +276,8 @@ class WWWLInteractorStyle(DefaultInteractorStyle): def CleanUp(self): self.viewer.on_wl = False - self.viewer.wl_text.Hide() + if self.viewer.wl_text is not None: + self.viewer.wl_text.Hide() def OnWindowLevelMove(self, obj, evt): if (self.left_pressed): -- libgit2 0.21.2