babl: make model_is_symmetric test adapt tolerance for high values
authorØyvind Kolås <pippin@gimp.org>
Thu, 4 Jul 2019 10:32:07 +0000 (12:32 +0200)
committerØyvind Kolås <pippin@gimp.org>
Thu, 4 Jul 2019 10:33:32 +0000 (12:33 +0200)
commite8b753ff9dadfb4819e4f3876aa792e4a719cbfc
treedbdc8a4564fe9de3326122836bb9a3cfd4e6f959
parent28538c54e1eb5332911223fe70d6b53b55ba34a1
babl: make model_is_symmetric test adapt tolerance for high values

When the values used are in the billions, the tolerance that originally
was mostly intended for values in the range 0.0-1.0 and its neighborhood
break apart - use 1% of component values as symmetry threshold for such
values.
babl/babl-model.c