Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
0569b30e
Commit
0569b30e
authored
Mar 05, 2020
by
Alice Russell
Browse files
Re #28256 Fix crash when double clicking md workspace
parent
2d28d33e
Changes
1
Hide whitespace changes
Inline
Side-by-side
qt/applications/workbench/workbench/plugins/workspacewidget.py
View file @
0569b30e
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment