Diff of /src/hugin_cpfind/cpfind/PanoDetector.cpp [1e70b7] .. [1fab1b]  Maximize  Restore

Switch to side-by-side view

--- a/src/hugin_cpfind/cpfind/PanoDetector.cpp
+++ b/src/hugin_cpfind/cpfind/PanoDetector.cpp
@@ -639,6 +639,11 @@
 		img.setX(0);
 		img.setY(0);
 		img.setZ(0);
+        img.setSpin(0);
+        img.setTilt(0);
+        img.setRotate(0);
+
+
 		img.setActive(true);
 		img.setResponseType(SrcPanoImage::RESPONSE_LINEAR);
 		img.setExposureValue(0);
@@ -965,16 +970,16 @@
         }
         optPano.setOptimizeVector(optvars);
 
-        // remove vertical and horizontal control points
-        CPVector cps = optPano.getCtrlPoints();
-        CPVector newCP;
-        for (CPVector::const_iterator it = cps.begin(); it != cps.end(); it++) {
-            if (it->mode == ControlPoint::X_Y)
-            {
-                newCP.push_back(*it);
-            }
-        }
-        optPano.setCtrlPoints(newCP);
+        // remove vertical and horizontal control points
+        CPVector cps = optPano.getCtrlPoints();
+        CPVector newCP;
+        for (CPVector::const_iterator it = cps.begin(); it != cps.end(); it++) {
+            if (it->mode == ControlPoint::X_Y)
+            {
+                newCP.push_back(*it);
+            }
+        }
+        optPano.setCtrlPoints(newCP);
 
         if (getVerbose() < 2) 
         {