From: Pablo d'A. <da...@us...> - 2006-04-28 07:03:21
|
Update of /cvsroot/hugin/hugin/src/hugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11010a Modified Files: OptimizePanel.cpp Log Message: check if the user is trying to optimize an unsupported projection. Index: OptimizePanel.cpp =================================================================== RCS file: /cvsroot/hugin/hugin/src/hugin/OptimizePanel.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- OptimizePanel.cpp 5 Apr 2006 23:05:10 -0000 1.36 +++ OptimizePanel.cpp 28 Apr 2006 07:03:19 -0000 1.37 @@ -437,6 +437,16 @@ int mode = m_mode_cb->GetSelection(); Panorama optPano = m_pano->getSubset(imgs); + switch(optPano.getOptions().getProjection()) { + case PanoramaOptions::RECTILINEAR: + case PanoramaOptions::CYLINDRICAL: + case PanoramaOptions::EQUIRECTANGULAR: + break; + default: + wxLogError(_("Cannot optimize this projection.\nOnly rectilinear, cylindrical and equirectangular panoramas can be optimized\n\nPlease optimize using one of these projections and selected the desired output projection afterwards.")); + return; + break; + } UIntSet allImg; fill_set(allImg,0, imgs.size()-1); if (mode == OPT_PAIRWISE) { |