Author: akv
Date: 2011-01-02 21:00:40 +0100 (Sun, 02 Jan 2011)
New Revision: 3783

Modified:
   trunk/librawstudio/rs-lens-fix.c
Log:
Using rs_atof() instead of atof().

Modified: trunk/librawstudio/rs-lens-fix.c
===================================================================
--- trunk/librawstudio/rs-lens-fix.c    2011-01-02 19:58:59 UTC (rev 3782)
+++ trunk/librawstudio/rs-lens-fix.c    2011-01-02 20:00:40 UTC (rev 3783)
@@ -58,8 +58,8 @@
                        if ((!xmlStrcmp(cur->name, BAD_CAST "lens")))
                        {
                                lens_id = atoi((char *) xmlGetProp(cur, 
BAD_CAST "id"));
-                               min_focal = atof((char *) xmlGetProp(cur, 
BAD_CAST "min-focal"));
-                               max_focal = atof((char *) xmlGetProp(cur, 
BAD_CAST "max-focal"));
+                               min_focal = rs_atof((char *) xmlGetProp(cur, 
BAD_CAST "min-focal"));
+                               max_focal = rs_atof((char *) xmlGetProp(cur, 
BAD_CAST "max-focal"));
 
                                if (lens_id == meta->lens_id && min_focal == 
meta->lens_min_focal && max_focal == meta->lens_max_focal)
                                {
@@ -68,9 +68,9 @@
                                        {
                                                val = xmlNodeListGetString(doc, 
entry->xmlChildrenNode, 1);
                                                if (!xmlStrcmp(entry->name, 
BAD_CAST "max-aperture"))
-                                                       meta->lens_max_aperture 
= atof((char *) val);
+                                                       meta->lens_max_aperture 
= rs_atof((char *) val);
                                                else if 
(!xmlStrcmp(entry->name, BAD_CAST "min-aperture"))
-                                                       meta->lens_min_aperture 
= atof((char *) val);
+                                                       meta->lens_min_aperture 
= rs_atof((char *) val);
                                                xmlFree(val);
                                                entry = entry->next;
                                        }


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to