Commit ca6d22b0f9b06923df53630178aa3fd84fe6d238
1 parent
8f166c91
Exists in
master
and in
7 other branches
Checking if ww&wl text exist before hiding it
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
invesalius/data/styles.py
... | ... | @@ -276,7 +276,8 @@ class WWWLInteractorStyle(DefaultInteractorStyle): |
276 | 276 | |
277 | 277 | def CleanUp(self): |
278 | 278 | self.viewer.on_wl = False |
279 | - self.viewer.wl_text.Hide() | |
279 | + if self.viewer.wl_text is not None: | |
280 | + self.viewer.wl_text.Hide() | |
280 | 281 | |
281 | 282 | def OnWindowLevelMove(self, obj, evt): |
282 | 283 | if (self.left_pressed): | ... | ... |