From 97c5c8b641ec260f91569bea0ef82f9a1540dd25 Mon Sep 17 00:00:00 2001 From: jdc Date: Wed, 2 Nov 2011 13:10:12 +0100 Subject: [PATCH] Another bug fix for ouput gamma --- rtengine/simpleprocess.cc | 6 +++--- rtgui/options.cc | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/rtengine/simpleprocess.cc b/rtengine/simpleprocess.cc index ffb7f83dc..dc53d11aa 100644 --- a/rtengine/simpleprocess.cc +++ b/rtengine/simpleprocess.cc @@ -240,9 +240,9 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p else if(j==3) chpro=options.rtSettings.beta; else if(j==4) chpro=options.rtSettings.best; else if(j==5) chpro=options.rtSettings.bruce; - else if(j==6) chpro=options.rtSettings.srgb; - for (int i=0; isetProgressStr ("Missing file..");pl->setProgress (0.0);// display file not present: not very good display information...!! if (settings->verbose) printf("Missing file: %s \n", chpro.c_str());} //c_str() diff --git a/rtgui/options.cc b/rtgui/options.cc index f9fa54250..69c313115 100644 --- a/rtgui/options.cc +++ b/rtgui/options.cc @@ -431,7 +431,14 @@ if (keyFile.has_group ("Color Management")) { if (keyFile.has_key ("Color Management", "Intent")) rtSettings.colorimetricIntent = keyFile.get_integer("Color Management", "Intent"); if (keyFile.has_key ("Color Management", "WhiteBalanceSpotSize")) whiteBalanceSpotSize = keyFile.get_integer("Color Management", "WhiteBalanceSpotSize"); - if( keyFile.has_key ("Color Management", "GamutICC")) rtSettings.gamutICC = keyFile.get_boolean("Color Management", "GamutICC"); + if( keyFile.has_key ("Color Management", "GamutICC")) rtSettings.gamutICC = keyFile.get_boolean("Color Management", "GamutICC"); + if( keyFile.has_key ("Color Management", "Adobe_RGB")) rtSettings.adobe = keyFile.get_string("Color Management", "Adobe_RGB"); + if( keyFile.has_key ("Color Management", "Pro_Photo")) rtSettings.prophoto = keyFile.get_string("Color Management","Pro_Photo"); + if( keyFile.has_key ("Color Management", "Wide_Gamut")) rtSettings.widegamut = keyFile.get_string("Color Management","Wide_Gamut"); + if( keyFile.has_key ("Color Management", "S_rgb")) rtSettings.srgb = keyFile.get_string("Color Management","S_rgb"); + if( keyFile.has_key ("Color Management", "B_eta")) rtSettings.beta = keyFile.get_string("Color Management","B_eta"); + if( keyFile.has_key ("Color Management", "B_est")) rtSettings.best = keyFile.get_string("Color Management","B_est"); + if( keyFile.has_key ("Color Management", "B_ruce")) rtSettings.bruce = keyFile.get_string("Color Management","B_ruce"); // Disabled (default is true) till issues are sorted out //if (keyFile.has_key ("Color Management", "LCMSSafeMode")) rtSettings.LCMSSafeMode = keyFile.get_boolean ("Color Management", "LCMSSafeMode");