Update of /cvsroot/ufraw/ufraw
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31118

Modified Files:
        ufraw_lens_ui.c 
Log Message:
Work around lensfun bug revealed by GCC 4.4.x.

Index: ufraw_lens_ui.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_lens_ui.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- ufraw_lens_ui.c     12 Aug 2009 02:15:05 -0000      1.12
+++ ufraw_lens_ui.c     22 Sep 2009 09:55:21 -0000      1.13
@@ -788,7 +788,7 @@
     uf_widget_set_tooltip(data->LensTCAModel,
                           _("Chromatic Aberrations mathematical model"));
     active_index = 0;
-    for (i = 0; ; i++)
+    for (i = 0; i <= LF_TCA_MODEL_LINEAR; i++)
     {
         const char *model_name;
         lfTCAModel model = LF_TCA_MODEL_NONE + i;
@@ -905,7 +905,7 @@
     uf_widget_set_tooltip(data->LensVignettingModel,
                           _("Optical vignetting mathematical model"));
     active_index = 0;
-    for (i = 0; ; i++)
+    for (i = 0; i <= LF_VIGNETTING_MODEL_PA; i++)
     {
         const char *model_name;
         lfVignettingModel model = LF_VIGNETTING_MODEL_NONE + i;
@@ -1025,7 +1025,7 @@
     uf_widget_set_tooltip (data->LensDistortionModel,
                            _("Lens distortion mathematical model"));
     active_index = 0;
-    for (i = 0; ; i++)
+    for (i = 0; i <= LF_DIST_MODEL_PTLENS; i++)
     {
         const char *model_name;
         lfDistortionModel model = LF_DIST_MODEL_NONE + i;
@@ -1133,7 +1133,7 @@
     gtk_table_attach (GTK_TABLE (data->LensGeometryTable), 
data->LensToGeometryDesc,
                       0, 2, 3, 4, GTK_EXPAND | GTK_FILL, 0, 0, 10);
 
-    for (i = 0; ; i++)
+    for (i = 0; i <= LF_EQUIRECTANGULAR; i++)
     {
         lfLensType type = LF_UNKNOWN + i;
         const char *type_name = lf_get_lens_type_desc (type, NULL);


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to