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