-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
1.3
-
generic
-
generic
ComponentColorModel.isCompatibleSampleModel() returns false when tested against ComponentSampleModel.
Looking at ComponentColorModel.isCompatibleSampleModel, on lines 1349 and 1350 it returns false if the SampleModel is ComponentSampleModel. As I understand, ComponentColorModel is suppose to work with ComponentSampleModel. I think what it meant to do was
if (!(sm instanceof ComponentSampleModel)) {
return false;
}
Looking at ComponentColorModel.isCompatibleSampleModel, on lines 1349 and 1350 it returns false if the SampleModel is ComponentSampleModel. As I understand, ComponentColorModel is suppose to work with ComponentSampleModel. I think what it meant to do was
if (!(sm instanceof ComponentSampleModel)) {
return false;
}