From ce2a9dc3ebb88127df498ba4aca51e53d21e19c8 Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 12 Nov 2024 22:16:11 +0100 Subject: [PATCH] Issue #12317: settings not imported from previous versions. This was looping down from the minor version which is 0 for GIMP 3.0.0! --- app/core/gimp-user-install.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/core/gimp-user-install.c b/app/core/gimp-user-install.c index 82537e330a..f8722f1fa2 100644 --- a/app/core/gimp-user-install.c +++ b/app/core/gimp-user-install.c @@ -292,7 +292,10 @@ user_install_detect_old (GimpUserInstall *install, g_snprintf (version, 5, "%d.XY", 2); - for (i = (GIMP_MINOR_VERSION & ~1); i >= 0; i -= 2) + /* XXX Looking from 2.10 and downwards. This logic must be changed + * to look 3.x versions too when we'll move up to 3.2 and upper. + */ + for (i = 10; i >= 0; i -= 2) { /* we assume that GIMP_APP_VERSION is in the form '2.x' */ g_snprintf (version + 2, 3, "%d", i);