Commit 0569b30e authored by Alice Russell's avatar Alice Russell
Browse files

Re #28256 Fix crash when double clicking md workspace

parent 2d28d33e
......@@ -231,7 +231,7 @@ class WorkspaceWidget(PluginWidget):
TableWorkspaceDisplay.supports(ws)
self._do_show_data([name])
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
plot_kwargs = {"axis": MantidAxType.BIN}
plot([ws],errors=False, overplot=False, wksp_indices=[0], plot_kwargs=plot_kwargs)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment