[gimp] Bug 794366 - Crash when using Hue-Chroma on a ProPhotoRGB image



commit 7ca38c54f602e794065562602fb1987ce1dd8f6f
Author: Michael Natterer <mitch gimp org>
Date:   Sun Mar 18 18:46:25 2018 +0100

    Bug 794366 - Crash when using Hue-Chroma on a ProPhotoRGB image
    
    Handle "CIE LCH(ab)" in gimp_color_profile_get_lcms_format() as
    suggested by Massimo.

 libgimpcolor/gimpcolorprofile.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libgimpcolor/gimpcolorprofile.c b/libgimpcolor/gimpcolorprofile.c
index 51743b9..f5fa958 100644
--- a/libgimpcolor/gimpcolorprofile.c
+++ b/libgimpcolor/gimpcolorprofile.c
@@ -1581,8 +1581,10 @@ gimp_color_profile_get_lcms_format (const Babl *format,
     {
       cmyk = TRUE;
     }
-  else if (model == babl_model ("CIE Lab") ||
-           model == babl_model ("CIE Lab alpha"))
+  else if (model == babl_model ("CIE Lab")       ||
+           model == babl_model ("CIE Lab alpha") ||
+           model == babl_model ("CIE LCH(ab)")   ||
+           model == babl_model ("CIE LCH(ab) alpha"))
     {
       if (has_alpha)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]