Commit 77ae3658e787981687c970bd3bd8b8956539cb36
1 parent
27398d4a
Exists in
master
and in
62 other branches
FIX: It was not possible to export 2d slice screenshots
it was because of AttributeError related to renderer.
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -1043,10 +1043,11 @@ class Viewer(wx.Panel): |
1043 | 1043 | writer.SetRenderWindow(renwin) |
1044 | 1044 | writer.Write() |
1045 | 1045 | else: |
1046 | + ren = self.slice_data.renderer | |
1046 | 1047 | #Use tiling to generate a large rendering. |
1047 | 1048 | image = vtk.vtkRenderLargeImage() |
1048 | - image.SetInput(self.ren) | |
1049 | - image.SetMagnification(2) | |
1049 | + image.SetInput(ren) | |
1050 | + image.SetMagnification(1) | |
1050 | 1051 | |
1051 | 1052 | image = image.GetOutput() |
1052 | 1053 | ... | ... |