Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /src/hugin_base/panodata/SrcPanoImage.cpp [3404bf] .. [53d90e] Maximize Restore

  Switch to side-by-side view

--- a/src/hugin_base/panodata/SrcPanoImage.cpp
+++ b/src/hugin_base/panodata/SrcPanoImage.cpp
@@ -531,7 +531,7 @@
             sqrt(sensorSize.x*sensorSize.x + sensorSize.y*sensorSize.y);
         // FIXME: HACK guard against invalid image focal plane definition in EXIF metadata with arbitrarly chosen limits for the crop factor ( 1/100 < crop < 100)
         if (cropFactor < 0.01 || cropFactor > 100) {
-            cropFactor = 1;
+            cropFactor = 0;
         }
     } else {
         // alternative way to calculate the crop factor for Olympus cameras
@@ -576,7 +576,7 @@
     } else if (eFocalLength > 0 && cropFactor <= 0) {
         // need to redo, this time with crop
         focalLength = eFocalLength;
-        cropFactor = 1;
+        cropFactor = 0;
     }
     getExiv2Value(exifData,"Exif.Photo.SubjectDistance", subjectDistance);