[gegl] vector-fill: pass colorspace strings as expected by ctx API



commit 1112da0c8e4c7cff8c0d63b91ace5a51f768725c
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Dec 16 01:50:15 2021 +0100

    vector-fill: pass colorspace strings as expected by ctx API

 operations/common/vector-fill.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/vector-fill.c b/operations/common/vector-fill.c
index a067dc98e..ae63e78fe 100644
--- a/operations/common/vector-fill.c
+++ b/operations/common/vector-fill.c
@@ -203,9 +203,9 @@ process (GeglOperation       *operation,
         if (!is_cmyk)
         {
           if (device_space)
-            ctx_colorspace (ctx, CTX_COLOR_SPACE_DEVICE_RGB, device_space_ascii, strlen 
(device_space_ascii)+1);
+            ctx_colorspace (ctx, CTX_COLOR_SPACE_DEVICE_RGB, (guint8*)device_space_ascii, strlen 
(device_space_ascii)+1);
           if (color_space)
-            ctx_colorspace (ctx, CTX_COLOR_SPACE_USER_RGB, color_space_ascii, strlen (color_space_ascii)+1);
+            ctx_colorspace (ctx, CTX_COLOR_SPACE_USER_RGB, (guint8*)color_space_ascii, strlen 
(color_space_ascii)+1);
         }
 
         ctx_translate (ctx, -result->x, -result->y);


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