Ticket #5599 (closed: fixed)
Crash when changing colormap on a spectrogram
Reported by: | Russell Taylor | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | major | Milestone: | Release 2.2 |
Component: | MantidPlot | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Owen Arnold |
Description
For me (on RHEL6), performing the following steps crashes MantidPlot:
- Load a dataset
- Plot as a color fill plot
- Double-click inside the plot to bring up the Plot Details dialog
- Select UserHelperFunction and the Colors tab
- Select Custom color map and choose a map
- Click Apply
- Boom!
Change History
comment:2 Changed 8 years ago by Russell Taylor
Re #5599. Be a bit more general when accessing vector member.
Although the documentation for QwtColorMap::colorTable says that it should return a vector of length 256, in the case of our colormaps it can be shorter, it would seem.
Changeset: 4f37c63a8274d0445a228ce18722d8efd2e2ef1e
comment:3 Changed 8 years ago by Russell Taylor
- Status changed from accepted to verify
- Resolution set to fixed
comment:4 Changed 8 years ago by Russell Taylor
Re #5599. Be a bit more general when accessing vector member.
Although the documentation for QwtColorMap::colorTable says that it should return a vector of length 256, in the case of our colormaps it can be shorter, it would seem.
Changeset: 4f37c63a8274d0445a228ce18722d8efd2e2ef1e
comment:5 Changed 8 years ago by Owen Arnold
- Status changed from verify to verifying
- Tester set to Owen Arnold