[gimp] plug-ins: check that the installed RawTherapee is at least version 5.2
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: check that the installed RawTherapee is at least version 5.2
- Date: Mon, 24 Jul 2017 17:13:51 +0000 (UTC)
commit 38be044bbaa4e6fb9a3601eae59ee311ecf36e4c
Author: Alberto Griggio <alberto griggio gmail com>
Date: Mon Jul 24 19:12:35 2017 +0200
plug-ins: check that the installed RawTherapee is at least version 5.2
plug-ins/file-rawtherapee/file-rawtherapee.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/file-rawtherapee/file-rawtherapee.c b/plug-ins/file-rawtherapee/file-rawtherapee.c
index 9df3f17..d78c30a 100644
--- a/plug-ins/file-rawtherapee/file-rawtherapee.c
+++ b/plug-ins/file-rawtherapee/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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]