From d51c6c32758cc219f0bc57091eb4ea909be55bf7 Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Mon, 24 Jul 2017 17:32:37 +0200 Subject: [PATCH] Updated Gimp plugin to check that the installed RawTherapee is at least version 5.2 --- tools/gimp-plugin/file-rawtherapee.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/gimp-plugin/file-rawtherapee.c b/tools/gimp-plugin/file-rawtherapee.c index 9df3f17da..d78c30a10 100644 --- a/tools/gimp-plugin/file-rawtherapee.c +++ b/tools/gimp-plugin/file-rawtherapee.c @@ -109,14 +109,13 @@ init (void) NULL, NULL)) { - char *rtversion = NULL; + int rtmajor = 0, rtminor = 0; if (sscanf (rawtherapee_stdout, - "RawTherapee, version %ms", - &rtversion) == 1) + "RawTherapee, version %d.%d", + &rtmajor, &rtminor) == 2 && rtmajor >= 5 && rtminor >= 2) { have_rawtherapee = TRUE; - free (rtversion); } g_free (rawtherapee_stdout);