From 6676e3d2716618093ab1dd4a103afaf56614da71 Mon Sep 17 00:00:00 2001 From: Hombre Date: Fri, 25 Nov 2016 22:41:41 +0100 Subject: [PATCH] BUGFIX: The selected theme was not necessarilly used. --- rtgui/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/main.cc b/rtgui/main.cc index 9b1102337..8d5a096c0 100644 --- a/rtgui/main.cc +++ b/rtgui/main.cc @@ -312,7 +312,7 @@ int main(int argc, char **argv) Glib::RefPtr regex = Glib::Regex::create(THEMEREGEXSTR, Glib::RegexCompileFlags::REGEX_CASELESS); Glib::ustring filename = Glib::build_filename(argv0, "themes", options.theme + ".css"); - if (!regex->match(options.theme) || !Glib::file_test(filename, Glib::FILE_TEST_EXISTS)) { + if (!regex->match(options.theme + ".css") || !Glib::file_test(filename, Glib::FILE_TEST_EXISTS)) { options.theme = "RawTherapee-GTK"; // We're not testing GTK_MAJOR_VERSION == 3 here, since this branch requires Gtk3 only if (GTK_MINOR_VERSION < 20) {