[gtk/matthiasc/color-profiles: 111/111] Add some assertions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/color-profiles: 111/111] Add some assertions
- Date: Wed, 6 Oct 2021 06:20:01 +0000 (UTC)
commit 4b2c9130a906be5da8182126bd9558ca1f1389b2
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 6 02:15:31 2021 -0400
Add some assertions
gdk/gdkmemoryformat.c | 3 +++
1 file changed, 3 insertions(+)
---
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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]