From 4bcd447b2e3a87eaacfdb6047f2e8f8902421aa0 Mon Sep 17 00:00:00 2001 From: tatiana Date: Mon, 20 Jul 2009 15:56:11 +0000 Subject: [PATCH] FIX: Colour used in erase imagedata during edition --- invesalius/data/slice_.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py index ae1d0a6..e822b61 100644 --- a/invesalius/data/slice_.py +++ b/invesalius/data/slice_.py @@ -372,7 +372,7 @@ class Slice(object): """ x, y, z = position imagedata = self.current_mask.imagedata - colour = imagedata.GetScalarRange()[0]# - 1 # Important to effect erase + colour = self.imagedata.GetScalarRange()[0]# - 1 # Important to effect erase imagedata.SetScalarComponentFromDouble(x, y, z, 0, colour) imagedata.Update() @@ -382,7 +382,7 @@ class Slice(object): """ imagedata = self.current_mask.imagedata if colour is None: - colour = imagedata.GetScalarRange()[1] + colour = self.imagedata.GetScalarRange()[1] imagedata.SetScalarComponentFromDouble(x, y, z, 0, colour) def EditPixelBasedOnThreshold(self, x, y, z): -- libgit2 0.21.2