Commit 8e4857dd2798fba14b2be8721b3341e89f2382bd
1 parent
59bf4f13
Exists in
master
and in
6 other branches
Oops! a file was missing in the previous commit
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
invesalius/gui/frame.py
... | ... | @@ -602,7 +602,13 @@ class SliceToolBar(wx.ToolBar): |
602 | 602 | else: |
603 | 603 | ps.Publisher().sendMessage(('Set interaction mode', |
604 | 604 | const.MODE_SLICE_EDITOR)) |
605 | - | |
605 | + if id == ID_CROSS: | |
606 | + if state: | |
607 | + ps.Publisher().sendMessage('Set cross visibility', 1) | |
608 | + else: | |
609 | + ps.Publisher().sendMessage('Set cross visibility', 0) | |
610 | + else: | |
611 | + ps.Publisher().sendMessage('Set cross visibility', 0) | |
606 | 612 | |
607 | 613 | for item in SLICE_TOOLS: |
608 | 614 | state = self.GetToolState(item) |
... | ... | @@ -617,6 +623,8 @@ class SliceToolBar(wx.ToolBar): |
617 | 623 | state = self.GetToolState(id) |
618 | 624 | if state: |
619 | 625 | self.ToggleTool(id, False) |
626 | + if id == ID_CROSS: | |
627 | + ps.Publisher().sendMessage('Set cross visibility', 0) | |
620 | 628 | |
621 | 629 | # --------------------------------------------------------------------- |
622 | 630 | ... | ... |