mantidproject / mslice

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

Use LineEditDoubleValidator to prevent broken e notation #904

Closed robertapplin closed 1 year ago

robertapplin commented 1 year ago

Description of work: This PR ensures we use a LineEditDoubleValidator for the waterfall x and y options so that providing a number in broken e notation will not cause a crash. Instead, the value will get reset to the original value.

To test: Create a waterfall plot Enter '2e' into the x box, and then click on the y box The x box should switch back to its original value of 0 Try entering valid values and make sure they still work for x and y

Part of #854