Would it not be simplest to add a "corrected" colour mode as a new mode,
keeping the old one? Just call the old one Colour (legacy)? and give the
new one a new internal mode number?
There is no requirement to have back compatability, so trying to open an xcf
file with this new layer mode would fail on an old version of gimp, much
like any of the new features.
Gimp-developer mailing list