Update of /cvsroot/ufraw/ufraw
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv698
Modified Files:
ufraw_settings.cc
Log Message:
Reenable support for WB Kelvin presets.
Index: ufraw_settings.cc
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_settings.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ufraw_settings.cc 11 Feb 2010 20:51:26 -0000 1.2
+++ ufraw_settings.cc 15 Feb 2010 02:39:42 -0000 1.3
@@ -85,7 +85,8 @@
void OriginalValueChangedEvent() {
/* Keep compatibility with old numbers from ufraw-0.6 */
int i;
- if (sscanf(StringValue(), "%d", &i) == 1) {
+ if (strlen(StringValue()) <= 2 &&
+ sscanf(StringValue(), "%d", &i) == 1) {
switch (i) {
case -1: Set(uf_spot_wb); break;
case 0: Set(uf_manual_wb); break;
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs