mantidproject / mslice

Source code for Mantid MSlice
http://mantidproject.github.io/mslice
1 stars 2 forks source link

Fix crash when changing intensity #917

Closed MialLewis closed 1 year ago

MialLewis commented 1 year ago

Description of work:

908 adds a property is_slice to workspaces to differentiate between slices and cuts. When you perform a binary operation on an mslice workspace, this property was not passed onto the new resultant workspace and therefore lost.

This ultimately caused a crash when setting the intensity of a slice.

To test: 1) Plot a slice. 2) Change intensity to chi 3) Observe no crash

Fixes #916