[gnome-settings-daemon/gnome-3-2] color: Use the enum of the correct type



commit 8402473ebaed543d6e9f4dbe2293dc50cc263d3e
Author: Richard Hughes <richard hughsie com>
Date:   Mon Mar 5 16:59:50 2012 +0000

    color: Use the enum of the correct type
    
    Note, in C is doesn't matter as they are both enums of the same value, but if
    you copy this code and use it with g++ you get a warning. Use the correct type
    in case gcc ever gets this strict too.

 plugins/color/gsd-color-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index d9147c1..c59ea88 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -751,7 +751,7 @@ gcm_session_generate_vcgt (CdProfile *profile, guint size)
                 goto out;
 
         /* get tone curves from profile */
-        vcgt = cmsReadTag (lcms_profile, cmsSigVcgtType);
+        vcgt = cmsReadTag (lcms_profile, cmsSigVcgtTag);
         if (vcgt == NULL || vcgt[0] == NULL) {
                 g_debug ("profile does not have any VCGT data");
                 goto out;



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