Updated Gimp plugin to check that the installed RawTherapee is at least version 5.2

This commit is contained in:
Alberto Griggio 2017-07-24 17:32:37 +02:00
parent eca51cfcbc
commit d51c6c3275
1 changed files with 3 additions and 4 deletions

View File

@ -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);