From 80f05a72930f794ea7e469e8eecd16bb9a13da50 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Mon, 18 Jan 2010 14:00:40 +0000 Subject: [PATCH] FIX: Don't try to get the raycasting background colour if the raycasting is set to off. Related to ticket #108 --- invesalius/data/volume.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invesalius/data/volume.py b/invesalius/data/volume.py index 7184fb9..3914eef 100755 --- a/invesalius/data/volume.py +++ b/invesalius/data/volume.py @@ -136,9 +136,9 @@ class Volume(): self.CalculateHistogram() self.exist = 1 - colour = self.GetBackgroundColour() - ps.Publisher.sendMessage('Change volume viewer background colour', colour) - ps.Publisher.sendMessage('Change volume viewer gui colour', colour) + colour = self.GetBackgroundColour() + ps.Publisher.sendMessage('Change volume viewer background colour', colour) + ps.Publisher.sendMessage('Change volume viewer gui colour', colour) def __load_preset_config(self): self.config = prj.Project().raycasting_preset -- libgit2 0.21.2