Update of /cvsroot/ufraw/ufraw
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21146

Modified Files:
        ufraw_lensfun.cc 
Log Message:
Fix bug in lens search code. The old code worked only because of a bug in the 
lensfun library. Patch by Andrew Zabolotny.

Index: ufraw_lensfun.cc
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_lensfun.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ufraw_lensfun.cc    4 Mar 2010 04:52:32 -0000       1.9
+++ ufraw_lensfun.cc    16 Mar 2010 04:55:23 -0000      1.10
@@ -124,7 +124,7 @@
        parse_maker_model(StringValue(), make, sizeof(make),
                model, sizeof(model));
        const lfLens **lensList = Lensfun.LensDB()->FindLenses(&Lensfun.Camera,
-               make, model, 0);
+               make, model, LF_SEARCH_LOOSE);
        if (lensList == NULL) {
            lfLens emptyLens;
            Lensfun.SetInterpolation(emptyLens);
@@ -626,7 +626,7 @@
     if (LensfunAuto.IsEqual("yes")) {
        if (strlen(uf->conf->lensText) > 0) {
            const lfLens **lenses = LensDB()->FindLenses(&Camera,
-                   NULL, uf->conf->lensText);
+                   NULL, uf->conf->lensText, LF_SEARCH_LOOSE);
            if (lenses != NULL) {
                SetLensModel(*lenses[0]);
                LensfunAuto.Set("yes");


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
ufraw-cvs mailing list
ufraw-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to