Skip to content
Snippets Groups Projects
Commit 84471a94 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Two little bug fixes. 1. fslview frame was crashing for view panels which

do not have config options, but also do not have a config menu item
name. 2. Conflicting fslview cli args - -a[lpha] and -a[xis]. Latter
changed to -ax.
parent e71a66f9
No related branches found
No related tags found
No related merge requests found
......@@ -104,12 +104,10 @@ class FSLViewFrame(wx.Frame):
allowing the user to configure the view.
"""
title = strings.viewPanelTitles[ panelCls]
menuText = strings.viewPanelConfigMenuText[panelCls]
panel = panelCls(self._centrePane,
self._imageList,
self._displayCtx)
title = strings.viewPanelTitles[panelCls]
panel = panelCls(self._centrePane,
self._imageList,
self._displayCtx)
self._viewPanelCount = self._viewPanelCount + 1
title = '{} {}'.format(title, self._viewPanelCount)
......@@ -122,6 +120,8 @@ class FSLViewFrame(wx.Frame):
wx.RIGHT)
if panel.hasConfigOptions():
menuText = strings.viewPanelConfigMenuText[panelCls]
menuText = menuText.format(title)
configAction = self._viewMenu.Append(wx.ID_ANY, menuText)
......
......@@ -78,7 +78,7 @@ def _configMainParser(mainParser):
'zrange',
'showGridLines',
'zax']
lbArgs = ['ss', 'nc', 'nr', 'zr', 'sg', 'a']
lbArgs = ['ss', 'nc', 'nr', 'zr', 'sg', 'ax']
# Use the properties module to automatically generate
# arguments - property labels and help strings are
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment