[gnome-settings-daemon] color: Use the enum of the correct type
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] color: Use the enum of the correct type
- Date: Mon, 5 Mar 2012 17:12:58 +0000 (UTC)
commit 3c7db4a1e5ad853ffd14f548740cbbff43f3c51c
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 05f98e8..5377220 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -752,7 +752,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]