Diff of /src/hugin_cpfind/cpfind/PanoDetector.cpp [14511e] .. [e2a0ff]  Maximize  Restore

Switch to side-by-side view

--- a/src/hugin_cpfind/cpfind/PanoDetector.cpp
+++ b/src/hugin_cpfind/cpfind/PanoDetector.cpp
@@ -845,8 +845,7 @@
         // Specify if the image has an associated keypoint file
 
         aImgData._keyfilename = getKeyfilenameFor(_keypath,aImgData._name);
-        ifstream keyfile(aImgData._keyfilename.c_str());
-        aImgData._hasakeyfile = keyfile.good();
+        aImgData._hasakeyfile = hugin_utils::FileExists(aImgData._keyfilename);
         if(aImgData._hasakeyfile)
         {
             imgWithKeyfile++;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks