Commit 3daf5e6e48db792709612b0b1008ab14003a4ec0

Authored by tfmoraes
1 parent 597575d6

FIX: The volume WW/WL behavior follows the slice behavior

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/volume.py
@@ -195,7 +195,7 @@ class Volume(): @@ -195,7 +195,7 @@ class Volume():
195 (ww, wl)) 195 (ww, wl))
196 196
197 def OnSetRelativeWindowLevel(self, pubsub_evt): 197 def OnSetRelativeWindowLevel(self, pubsub_evt):
198 - diff_ww, diff_wl = pubsub_evt.data 198 + diff_wl, diff_ww = pubsub_evt.data
199 ww = self.ww + diff_ww 199 ww = self.ww + diff_ww
200 wl = self.wl + diff_wl 200 wl = self.wl + diff_wl
201 ps.Publisher().sendMessage('Set volume window and level text', 201 ps.Publisher().sendMessage('Set volume window and level text',