Bug 130381

Summary: automatic colorbalance and camera color balance checkboxes swapped
Product: [Applications] digikam Reporter: Erik van der Velden <erikvandervelden>
Component: Setup-ImageEditorAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.0
Sentry Crash Report:

Description Erik van der Velden 2006-07-07 00:38:38 UTC
Version:           9.0 svn (using KDE KDE 3.5.3)
Installed from:    Compiled From Sources
Compiler:          x86_64-pc-linux-gnu-3.4.6 
OS:                Linux

In >settings>IO files there are two checkboxes; one for automatic color balance and and one for camera color balance.
However, the options are actually swapped and the values are read wrongly.

The following patch fixes this:

Index: digikam/utilities/setup/setupiofiles.cpp
===================================================================
--- digikam/utilities/setup/setupiofiles.cpp    (revision 558963)
+++ digikam/utilities/setup/setupiofiles.cpp    (working copy)
@@ -333,8 +333,8 @@
     d->NRSigmaRange->setValue( config->readDoubleNumEntry("NRSigmaRange", 4.0) );
     d->SuperCCDsecondarySensor->setChecked(config->readBoolEntry("SuperCCDsecondarySensor", false));
     d->unclipColors->setChecked(config->readBoolEntry("UnclipColors", false));
-    d->cameraColorBalance->setChecked(config->readBoolEntry("AutomaticColorBalance", true));
-    d->automaticColorBalance->setChecked(config->readBoolEntry("CameraColorBalance", true));
+    d->cameraColorBalance->setChecked(config->readBoolEntry("CameraColorBalance", true));
+    d->automaticColorBalance->setChecked(config->readBoolEntry("AutomaticColorBalance", true));
     d->RGBInterpolate4Colors->setChecked(config->readBoolEntry("RGBInterpolate4Colors", false));

     d->JPEGcompression->setValue( config->readNumEntry("JPEGCompression", 75) );
Comment 1 caulier.gilles 2006-07-07 09:29:39 UTC
SVN commit 559363 by cgilles:

Fix swaped dcraw color balance settings
BUG: 130381


 M  +2 -2      setupiofiles.cpp  


--- trunk/extragear/graphics/digikam/utilities/setup/setupiofiles.cpp #559362:559363
@@ -333,8 +333,8 @@
     d->NRSigmaRange->setValue( config->readDoubleNumEntry("NRSigmaRange", 4.0) );
     d->SuperCCDsecondarySensor->setChecked(config->readBoolEntry("SuperCCDsecondarySensor", false));
     d->unclipColors->setChecked(config->readBoolEntry("UnclipColors", false));
-    d->cameraColorBalance->setChecked(config->readBoolEntry("AutomaticColorBalance", true));
-    d->automaticColorBalance->setChecked(config->readBoolEntry("CameraColorBalance", true));
+    d->cameraColorBalance->setChecked(config->readBoolEntry("CameraColorBalance", true));
+    d->automaticColorBalance->setChecked(config->readBoolEntry("AutomaticColorBalance", true));
     d->RGBInterpolate4Colors->setChecked(config->readBoolEntry("RGBInterpolate4Colors", false));
 
     d->JPEGcompression->setValue( config->readNumEntry("JPEGCompression", 75) );