Commit 8e4857dd2798fba14b2be8721b3341e89f2382bd

Authored by tfmoraes
1 parent 59bf4f13

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,7 +602,13 @@ class SliceToolBar(wx.ToolBar):
602 else: 602 else:
603 ps.Publisher().sendMessage(('Set interaction mode', 603 ps.Publisher().sendMessage(('Set interaction mode',
604 const.MODE_SLICE_EDITOR)) 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 for item in SLICE_TOOLS: 613 for item in SLICE_TOOLS:
608 state = self.GetToolState(item) 614 state = self.GetToolState(item)
@@ -617,6 +623,8 @@ class SliceToolBar(wx.ToolBar): @@ -617,6 +623,8 @@ class SliceToolBar(wx.ToolBar):
617 state = self.GetToolState(id) 623 state = self.GetToolState(id)
618 if state: 624 if state:
619 self.ToggleTool(id, False) 625 self.ToggleTool(id, False)
  626 + if id == ID_CROSS:
  627 + ps.Publisher().sendMessage('Set cross visibility', 0)
620 628
621 # --------------------------------------------------------------------- 629 # ---------------------------------------------------------------------
622 630