Unverified Commit 83a1380a authored by Nick Draper's avatar Nick Draper Committed by GitHub
Browse files

Merge pull request #28259 from mantidproject/28256_crash_when_double_clicking_md_workspace

Fix crash when double clicking MD workspace
parents 2d28d33e 0569b30e
......@@ -231,7 +231,7 @@ class WorkspaceWidget(PluginWidget):
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