From 7e4da077dff63925374d0d500dd904487ced9f50 Mon Sep 17 00:00:00 2001 From: Hombre Date: Thu, 3 Oct 2013 23:43:53 +0200 Subject: [PATCH] Bugfix : An erroneous default profile's path was sent to the Custom Profile Builder --- rtgui/thumbnail.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/thumbnail.cc b/rtgui/thumbnail.cc index d8710ebb8..5d6e0bd6e 100644 --- a/rtgui/thumbnail.cc +++ b/rtgui/thumbnail.cc @@ -206,7 +206,7 @@ rtengine::procparams::ProcParams* Thumbnail::createProcParamsForUpdate(bool retu if (!options.customProfileBuilder.empty() && !defaultPparamsPath.empty() && (!hasProcParams() || forceCPB) && cfs && cfs->exifValid) { // For the filename etc. do NOT use streams, since they are not UTF8 safe Glib::ustring cmdLine=Glib::ustring("\"") + options.customProfileBuilder + Glib::ustring("\" \"") + fname + Glib::ustring("\" \"") - + (defaultPparamsPath == DEFPROFILE_INTERNAL ? "Neutral" : Glib::build_filename(defaultPparamsPath, defProf + paramFileExtension)) + Glib::ustring("\" "); + + (defaultPparamsPath == DEFPROFILE_INTERNAL ? "Neutral" : Glib::build_filename(defaultPparamsPath, Glib::path_get_basename(defProf) + paramFileExtension)) + Glib::ustring("\" "); // ustring doesn't know int etc formatting, so take these via (unsafe) stream std::ostringstream strm;