[ptx] [ hugin-Bugs-1059089 ] hugin doesn't open argv[1] with absolute paths + patch

SourceForge.net noreply at sourceforge.net
Tue Nov 2 21:38:10 GMT 2004


Bugs item #1059089, was opened at 2004-11-02 16:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=550441&aid=1059089&group_id=77506

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marek Januszewski (specu)
Assigned to: Nobody/Anonymous (nobody)
Summary: hugin doesn't open argv[1] with absolute paths + patch

Initial Comment:
If I run hugin:
hugin c:\panorama\pano1.pto
it will fail with error message which implies that it's
looking in c:\panorama\c:\panorama\pano1.pto

the problem is in huginApp.cpp:242. proposed patch:
    // TODO: check if we need to load images.
    if (argc == 2) {
        if (wxIsAbsolutePath(argv[1])) {
          wxString filename(argv[1]);
        }    
        else {
          wxString filename(cwd);
         
filename.append(wxFileName::GetPathSeparator()).append(argv[1]);
        }     
        frame->LoadProjectFile(filename);
    }



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=550441&aid=1059089&group_id=77506


More information about the ptX mailing list