Commit 3b6ee0304a75630e410048491758aff098dd1f0f
1 parent
fb49c0a6
Exists in
master
and in
5 other branches
FIX: A try to fix #243
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
invesalius/gui/widgets/clut_raycasting.py
... | ... | @@ -493,10 +493,11 @@ class CLUTRaycastingWidget(wx.Panel): |
493 | 493 | |
494 | 494 | colouri = nodei.colour[0],nodei.colour[1],nodei.colour[2], GRADIENT_RGBA |
495 | 495 | colourj = nodej.colour[0],nodej.colour[1],nodej.colour[2], GRADIENT_RGBA |
496 | - b = ctx.CreateLinearGradientBrush(nodei.x, height, | |
497 | - nodej.x, height, | |
496 | + b = ctx.CreateLinearGradientBrush(int(nodei.x), height, | |
497 | + int(nodej.x), height, | |
498 | 498 | colouri, colourj) |
499 | 499 | ctx.SetBrush(b) |
500 | + ctx.SetPen(wx.TRANSPARENT_PEN) | |
500 | 501 | ctx.FillPath(path) |
501 | 502 | |
502 | 503 | def _draw_curves(self, ctx): | ... | ... |