Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix
ColorTableTestSpecialConditionChecker
component/pixel mix-up
It appears that `ColorTableTestSpecialConditionChecker<TComponent>()` mixed up color component and pixel types, when it assigned the result of two `GetColorComponent` calls to a `pixel` variable. `GetColorComponent` returns a component value, rather than a pixel value. This bug was found by declaring the `RGBPixel(const ComponentType &)` constructor `explicit` (locally, temporarily), to detect accidental implicit conversions from a component value to an `RGBPixel` value. Follow-up to: pull request InsightSoftwareConsortium#3221 commit 9cfaf8f "STYLE: Rename `ColorTable` template parameter `TPixel` to `TComponent`"
- Loading branch information