Skip to content
Snippets Groups Projects
Commit 0569b30e authored by Alice Russell's avatar Alice Russell
Browse files

Re #28256 Fix crash when double clicking md workspace

parent 2d28d33e
No related branches found
No related tags found
No related merge requests found
...@@ -231,7 +231,7 @@ class WorkspaceWidget(PluginWidget): ...@@ -231,7 +231,7 @@ class WorkspaceWidget(PluginWidget):
TableWorkspaceDisplay.supports(ws) TableWorkspaceDisplay.supports(ws)
self._do_show_data([name]) self._do_show_data([name])
except ValueError: except ValueError:
if ws.blocksize() == 1: if hasattr(ws, 'blocksize') and ws.blocksize() == 1:
#this is just single bin data, it makes more sense to plot the bin #this is just single bin data, it makes more sense to plot the bin
plot_kwargs = {"axis": MantidAxType.BIN} plot_kwargs = {"axis": MantidAxType.BIN}
plot([ws],errors=False, overplot=False, wksp_indices=[0], plot_kwargs=plot_kwargs) plot([ws],errors=False, overplot=False, wksp_indices=[0], plot_kwargs=plot_kwargs)
......
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