Skip to content
Snippets Groups Projects
Commit 20861786 authored by Conor Finn's avatar Conor Finn
Browse files

RE #28251 Fix fills staying when deleting workspaces

A waterfall plot with fills would leave the fills behind when the
workspace was deleted. Now does a check that the plot is a waterfall and
has fills before updating the fills on the plot.
parent 7c16d72c
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,9 @@ class FigureManagerADSObserver(AnalysisDataServiceObserver):
for ax in all_axes:
if isinstance(ax, MantidAxes):
to_redraw = ax.remove_workspace_artists(workspace)
if ax.is_waterfall() and ax.waterfall_has_fill():
datafunctions.waterfall_update_fill(ax)
else:
to_redraw = False
# We check for images and lines below as a pseudo check for an axes being
......
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