[gegl] rgb-clip: use babl_model_is



commit d9c7aeb7296329a8200b5d6497e52b6541cddeeb
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Jul 12 00:26:34 2018 +0200

    rgb-clip: use babl_model_is

 operations/common/rgb-clip.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/operations/common/rgb-clip.c b/operations/common/rgb-clip.c
index a54f974b0..6c58b6f75 100644
--- a/operations/common/rgb-clip.c
+++ b/operations/common/rgb-clip.c
@@ -59,13 +59,13 @@ prepare (GeglOperation *operation)
     {
       const Babl *model = babl_format_get_model (src_format);
 
-      if (model == babl_model ("RGB"))
+      if (babl_model_is (model, "RGB"))
         format = "RGB float";
-      else if (model == babl_model ("RGBA"))
+      else if (babl_model_is (model, "RGBA"))
         format = "RGBA float";
-      else if (model == babl_model ("R'G'B'"))
+      else if (babl_model_is (model, "R'G'B'"))
         format = "R'G'B' float";
-      else if (model == babl_model ("R'G'B'A"))
+      else if (babl_model_is (model, "R'G'B'A"))
         format = "R'G'B'A float";
       else if (babl_format_has_alpha (src_format))
         format = "RGBA float";


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