Bugfix: if located in a subdirectory, the default raw or image profile couldn't be found in command line mode.
This commit is contained in:
@@ -544,7 +544,7 @@ int processLineParams( int argc, char **argv )
|
|||||||
if (useDefault) {
|
if (useDefault) {
|
||||||
rawParams = new rtengine::procparams::PartialProfile(true, true);
|
rawParams = new rtengine::procparams::PartialProfile(true, true);
|
||||||
Glib::ustring profPath = options.findProfilePath(options.defProfRaw);
|
Glib::ustring profPath = options.findProfilePath(options.defProfRaw);
|
||||||
if (options.is_defProfRawMissing() || profPath.empty() || rawParams->load(profPath==DEFPROFILE_INTERNAL ? DEFPROFILE_INTERNAL : Glib::build_filename(profPath, Glib::path_get_basename(options.defProfRaw) + paramFileExtension))) {
|
if (options.is_defProfRawMissing() || profPath.empty() || rawParams->load(profPath==DEFPROFILE_INTERNAL ? DEFPROFILE_INTERNAL : Glib::build_filename(profPath, options.defProfRaw.substr(5) + paramFileExtension))) {
|
||||||
std::cerr << "Error: default raw processing profile not found" << std::endl;
|
std::cerr << "Error: default raw processing profile not found" << std::endl;
|
||||||
rawParams->deleteInstance();
|
rawParams->deleteInstance();
|
||||||
delete rawParams;
|
delete rawParams;
|
||||||
@@ -553,7 +553,7 @@ int processLineParams( int argc, char **argv )
|
|||||||
}
|
}
|
||||||
imgParams = new rtengine::procparams::PartialProfile(true);
|
imgParams = new rtengine::procparams::PartialProfile(true);
|
||||||
profPath = options.findProfilePath(options.defProfImg);
|
profPath = options.findProfilePath(options.defProfImg);
|
||||||
if (options.is_defProfImgMissing() || profPath.empty() || imgParams->load(profPath==DEFPROFILE_INTERNAL ? DEFPROFILE_INTERNAL : Glib::build_filename(profPath, Glib::path_get_basename(options.defProfImg) + paramFileExtension))) {
|
if (options.is_defProfImgMissing() || profPath.empty() || imgParams->load(profPath==DEFPROFILE_INTERNAL ? DEFPROFILE_INTERNAL : Glib::build_filename(profPath, options.defProfImg.substr(5) + paramFileExtension))) {
|
||||||
std::cerr << "Error: default non-raw processing profile not found" << std::endl;
|
std::cerr << "Error: default non-raw processing profile not found" << std::endl;
|
||||||
imgParams->deleteInstance();
|
imgParams->deleteInstance();
|
||||||
delete imgParams;
|
delete imgParams;
|
||||||
|
Reference in New Issue
Block a user