imagej / imagej-common

ImageJ core data model
https://imagej.net/libs/imagej-common
BSD 2-Clause "Simplified" License
9 stars 18 forks source link

Prevent converters from being reset to Type bounds upon rebuild #79

Closed gselzer closed 5 years ago

gselzer commented 6 years ago

A bug within rebuild() caused any changes made to the channel ranges through setChannelRange() to be overridden upon the next call to rebuild(), which is problematic considering that rebuild() has to be called to update the DefaultDatasetView and see the changes that you want to make. This PR fixes this issue by only overriding the converters if there are none there in the first place (e.g. after the DefaultDatasetView was just created).

TODO:

Questions:

ctrueden commented 5 years ago

@gselzer I cleaned it up.