Replace user defined old color maps with new color maps
When a user is importing a user defined color map, and the name matches an already loaded map that is not one of the maps bundled with ParaView, please replace the old map with the new map. Currently, the user needs to delete her old map and then add the new one. However, do NOT replace any of the defaults. Here is how to test:
- 5.11.1, Linux, builtin server.
- Load can.exo. Apply. ACCL.
- Color map editor.
- Click on the center point. . Change the point to yellow. Save Preset. Change the name to Ugly. OK.
- Close the Preset dialog.
- Click on the center point. . Change the point to green. Save Preset. Change the name to Ugly. OK.
- The preset isn't correct, it should have green in the center.
- When you click on the Ugly preset, it is still the yellow Ugly map.
- There is a warning that says: Generic Warning: In vtkSMTransferFunctionPresets.cxx, line 261 Giving up. Cannot find a unique name for 'Ugly'. Please provide a good prefix.