From b6d222439a27c332b6e7c3bc3ce6b0d3ebef5852 Mon Sep 17 00:00:00 2001 From: tatiana Date: Wed, 26 Aug 2009 17:21:42 +0000 Subject: [PATCH] ENC: In order to work in MacOS while I don't compile Cairo --- invesalius/gui/widgets/clut_raycasting.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/invesalius/gui/widgets/clut_raycasting.py b/invesalius/gui/widgets/clut_raycasting.py index 9b603c9..baaf571 100644 --- a/invesalius/gui/widgets/clut_raycasting.py +++ b/invesalius/gui/widgets/clut_raycasting.py @@ -219,7 +219,6 @@ class CLUTRaycastingWidget(wx.Panel): self.Render(dc) def OnSize(self, evt): - print "Resizing" self.CreatePixelArray() self.Refresh() @@ -282,7 +281,6 @@ class CLUTRaycastingWidget(wx.Panel): = ctx.text_extents("Value %6d" % value) fheight = ctx.font_extents()[2] - print "font", x_bearing, y_bearing ctx.set_source_rgba(*BACKGROUND_TEXT_COLOUR_RGBA) ctx.rectangle(x + RADIUS + 1 + x_bearing, y - RADIUS * 2 - 2 + @@ -334,8 +332,9 @@ class CLUTRaycastingWidget(wx.Panel): self._draw_curves(ctx) self._draw_points(ctx) self._draw_selection_curve(ctx, width) - if self.point_dragged: - self._draw_selected_point_text(ctx) + if sys.platform != "darwin": + if self.point_dragged: + self._draw_selected_point_text(ctx) def _build_histogram(self): -- libgit2 0.21.2