summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-10-06 02:15:31 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-10-06 02:19:43 -0400
commit4b2c9130a906be5da8182126bd9558ca1f1389b2 (patch)
treefd38fc5d2462d25985a39984ed05cba9d78940e1
parent27361bf136e745d3fc40ad33ddfc84e82b0e2e99 (diff)
downloadgtk+-matthiasc/color-profiles.tar.gz
Add some assertionsmatthiasc/color-profiles
-rw-r--r--gdk/gdkmemoryformat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkmemoryformat.c b/gdk/gdkmemoryformat.c
index cdd2c9a009..caafaa1e9a 100644
--- a/gdk/gdkmemoryformat.c
+++ b/gdk/gdkmemoryformat.c
@@ -822,6 +822,9 @@ gdk_memory_convert_transform (guchar *dest_data,
guchar *src_tmp, *dest_tmp;
gsize y;
+ g_assert (GDK_IS_ICC_PROFILE (src_profile));
+ g_assert (GDK_IS_ICC_PROFILE (dest_profile));
+
transform = gdk_icc_profile_lookup_transform (GDK_ICC_PROFILE (src_profile),
src_desc->lcms.type,
GDK_ICC_PROFILE (dest_profile),