Change of data type in container does not reset selected container
If a data container is selected in a filter that has some requirements specified with DataArraySelectionFilterParameter::RequirementType such a a pixel type (e.g. int8), and the container content is changed (e.g. image file reader input changed), the filter that selects the data container is not reset, and therefore may be run with the wrong type of data.
Example:
- Image Reader loads a float image
- Float image is accepted in Processing filter and user selects data container containing float image
- Input of Image Reader is changed to a short image
- Filter should not accept short image
- The data container is still selected in the Processing filter. It should be reset.
It should still be selected but a preflight error should also appear for the user. Does this happen in your case or does the preflight silently pass?
Preflight silently passes. Maybe I am missing a call in mypreflight. I will right an example that fails, but not my top priority except if you think that is really important. I reported it to not forget.