Commit e021cf2cf23230cf9fae744356186580561d4ff6
1 parent
ffac2338
Exists in
master
and in
6 other branches
FIX: Volume orientation (view angle)
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
invesalius/gui/default_viewers.py
... | ... | @@ -268,9 +268,11 @@ class VolumeToolPanel(wx.Panel): |
268 | 268 | |
269 | 269 | def OnMenuView(self, evt): |
270 | 270 | """Events from button menus.""" |
271 | - self.button_view.SetBitmapSelected(ID_TO_BMP[evt.GetId()][1]) | |
271 | + bmp = wx.Bitmap(ID_TO_BMP[evt.GetId()][1], wx.BITMAP_TYPE_PNG) | |
272 | + self.button_view.SetBitmapSelected(bmp) | |
273 | + | |
272 | 274 | ps.Publisher().sendMessage('Set volume view angle', |
273 | - ID_TO_BMP[evt.GetId()][0]) | |
275 | + evt.GetId()) | |
274 | 276 | |
275 | 277 | def OnSelectColour(self, evt): |
276 | 278 | colour = c = [i/255.0 for i in evt.GetValue()] | ... | ... |