From ee0aec22392092f7ff114ba985bcadbaedce896a Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Thu, 29 Jul 2021 18:32:57 -0300 Subject: [PATCH] Calling slice_data.text from slice_data --- invesalius/data/slice_data.py | 1 + invesalius/data/viewer_slice.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/data/slice_data.py b/invesalius/data/slice_data.py index 0c0134d..e2fd22a 100644 --- a/invesalius/data/slice_data.py +++ b/invesalius/data/slice_data.py @@ -85,3 +85,4 @@ class SliceData(object): w, h = self.renderer.GetSize() colour = const.ORIENTATION_COLOUR[self.orientation] canvas.draw_rectangle((0, 0), w, h, line_colour=[255*i for i in colour] + [255], line_width=2) + self.text.draw_to_canvas(gc, canvas) diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 0e27f02..e33e1ab 100644 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -1109,7 +1109,6 @@ class Viewer(wx.Panel): self.__build_cross_lines() self.canvas = CanvasRendererCTX(self, self.slice_data.renderer, self.slice_data.canvas_renderer, self.orientation) - self.canvas.draw_list.append(self.slice_data.text) self.canvas.draw_list.append(self.slice_data) # Set the slice number to the last slice to ensure the camera if far -- libgit2 0.21.2