Commit 32e7c43a06655b65c489ab96d77b4ffc8c0a055b

Authored by tatiana
1 parent 7137baa6

FIX: Slice picture (removed coloured cross on the center)

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
invesalius/data/viewer_slice.py
... ... @@ -835,6 +835,10 @@ class Viewer(wx.Panel):
835 835  
836 836 def OnExportPicture(self, pubsub_evt):
837 837 ps.Publisher().sendMessage('Begin busy cursor')
  838 + view_prop_list = []
  839 + for slice_data in self.slice_data_list:
  840 + view_prop_list.append(slice_data.box_actor)
  841 + self.ren.RemoveViewProp(slice_data.box_actor)
838 842  
839 843 id, filename, filetype = pubsub_evt.data
840 844 dict = {"AXIAL": const.AXIAL,
... ... @@ -885,6 +889,10 @@ class Viewer(wx.Panel):
885 889 writer.SetFileName(filename)
886 890 writer.Write()
887 891  
  892 + for actor in view_prop_list:
  893 + self.ren.AddViewProp(actor)
  894 +
  895 +
888 896 ps.Publisher().sendMessage('End busy cursor')
889 897  
890 898 def OnShowText(self, pubsub_evt):
... ...