Commit 2c15acb2cf667f0bbe3f2e503fe7fd606a1717b8

Authored by Paulo Henrique Junqueira Amorim
1 parent 3e57fb50
Exists in master

FIX: Error on select colour point in raycasting

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
invesalius/gui/widgets/clut_raycasting.py
... ... @@ -227,7 +227,9 @@ class CLUTRaycastingWidget(wx.Panel):
227 227 colour_dialog = wx.GetColourFromUser(self, actual_colour)
228 228 if colour_dialog.IsOk():
229 229 i,j = point
230   - r, g, b = colour_dialog.Get()
  230 +
  231 + r, g, b, a = colour_dialog.Get()
  232 +
231 233 self.colours[i][j]['red'] = r / 255.0
232 234 self.colours[i][j]['green'] = g / 255.0
233 235 self.colours[i][j]['blue'] = b / 255.0
... ...