Commit 32e7c43a06655b65c489ab96d77b4ffc8c0a055b
1 parent
7137baa6
Exists in
master
and in
6 other branches
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,6 +835,10 @@ class Viewer(wx.Panel): | ||
835 | 835 | ||
836 | def OnExportPicture(self, pubsub_evt): | 836 | def OnExportPicture(self, pubsub_evt): |
837 | ps.Publisher().sendMessage('Begin busy cursor') | 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 | id, filename, filetype = pubsub_evt.data | 843 | id, filename, filetype = pubsub_evt.data |
840 | dict = {"AXIAL": const.AXIAL, | 844 | dict = {"AXIAL": const.AXIAL, |
@@ -885,6 +889,10 @@ class Viewer(wx.Panel): | @@ -885,6 +889,10 @@ class Viewer(wx.Panel): | ||
885 | writer.SetFileName(filename) | 889 | writer.SetFileName(filename) |
886 | writer.Write() | 890 | writer.Write() |
887 | 891 | ||
892 | + for actor in view_prop_list: | ||
893 | + self.ren.AddViewProp(actor) | ||
894 | + | ||
895 | + | ||
888 | ps.Publisher().sendMessage('End busy cursor') | 896 | ps.Publisher().sendMessage('End busy cursor') |
889 | 897 | ||
890 | def OnShowText(self, pubsub_evt): | 898 | def OnShowText(self, pubsub_evt): |