Diff of /src/hugin_base/nona/Stitcher.h [570f5d] .. [0628c3] Maximize Restore

  Switch to side-by-side view

--- a/src/hugin_base/nona/Stitcher.h
+++ b/src/hugin_base/nona/Stitcher.h
@@ -598,7 +598,7 @@
         stitch(opts, imgSet, vigra::destImageRange(pano), vigra::destImage(panoMask), remapper);
 	
 	    std::string ext = opts.getOutputExtension();
-        std::string cext = hugin_utils::getExtension(basename);
+        std::string cext = hugin_utils::tolower(hugin_utils::getExtension(basename));
         std::transform(cext.begin(),cext.end(), cext.begin(), (int(*)(int))std::tolower);
         // remove extension only if it specifies the same file type, otherwise
         // its probably part of the filename.
@@ -735,8 +735,7 @@
                remapper, reduce);
 
     	std::string ext = opts.getOutputExtension();
-        std::string cext = hugin_utils::getExtension(basename);
-        std::transform(cext.begin(),cext.end(), cext.begin(), (int(*)(int))std::tolower);
+        std::string cext = hugin_utils::tolower(hugin_utils::getExtension(basename));
         // remove extension only if it specifies the same file type, otherwise
         // its probably part of the filename.
         if (cext == ext) {
@@ -934,8 +933,7 @@
         stitch(opts, imgSet, vigra::destImageRange(pano), vigra::destImage(panoMask), remapper, blend);
 	
 	    std::string ext = opts.getOutputExtension();
-        std::string cext = hugin_utils::getExtension(basename);
-        std::transform(cext.begin(),cext.end(), cext.begin(), (int(*)(int))std::tolower);
+        std::string cext = hugin_utils::tolower(hugin_utils::getExtension(basename));
         // remove extension only if it specifies the same file type, otherwise
         // its probably part of the filename.
         if (cext == ext) {