babl: make babl_format_with_space not crash with palette based formats
authorØyvind Kolås <pippin@gimp.org>
Thu, 6 Dec 2018 18:19:40 +0000 (19:19 +0100)
committerØyvind Kolås <pippin@gimp.org>
Thu, 6 Dec 2018 18:19:40 +0000 (19:19 +0100)
commit2e31c01a0cb9f51fea850149f462c43093f97adb
treed50270bb55ed40c47b70e774183749227de3b44c
parenta643868c23b15bd6ec105618ce6503d7f96f762f
babl: make babl_format_with_space not crash with palette based formats

Now, both palettes referred to by their string name and palettes passed
directly in with a cast get passed through without modification, for
correct behavior their palette entries should also be re-created

(the only way to read out the palette is currently to do an exhaustive buffer
conversion.)
babl/babl-format.c