gimp/gimp-2.6.6-GEGL.patch

25 lines
898 B
Diff

diff -Nru gimp-2.6.6.orig/app/sanity.c gimp-2.6.6/app/sanity.c
--- gimp-2.6.6.orig/app/sanity.c 2009-08-06 02:39:26.000000000 +0200
+++ gimp-2.6.6/app/sanity.c 2009-08-06 02:42:49.000000000 +0200
@@ -296,6 +296,7 @@
gint gegl_major_version;
gint gegl_minor_version;
gint gegl_micro_version;
+ gint bversion;
#define GEGL_REQUIRED_MAJOR 0
#define GEGL_REQUIRED_MINOR 0
@@ -305,9 +306,9 @@
&gegl_minor_version,
&gegl_micro_version);
- if (gegl_major_version < GEGL_REQUIRED_MAJOR ||
- gegl_minor_version < GEGL_REQUIRED_MINOR ||
- gegl_micro_version < GEGL_REQUIRED_MICRO)
+ bversion = gegl_micro_version + gegl_minor_version*100 + gegl_major_version*10000;
+
+ if (bversion < (GEGL_REQUIRED_MICRO + GEGL_REQUIRED_MINOR*100 + GEGL_REQUIRED_MAJOR*10000))
{
return g_strdup_printf
("GEGL version too old!\n\n"