Hi Thomas,
Am Donnerstag, 19. Mai 2016 19:03:47 UTC+2 schrieb Niklas Mischkulnig:
>>
>> if I open the file itself, it works fine. Via Hugin, it does get added
>> twice, though not exactly (see attachment).
>> Should I prepare a patch to open multiple files at once from finder?
>>
> Not before the problem with calling from Hugin is fixed. Maybe you can try
> to debug it on your side?
>
When Hugin called PTBatcher, it swapped the prefix and the project file.
PTBatcher tried to open the prefix and to save to the project file. See
Patch at
Working on the doubled project in PTBatcher...
> What's the main point for you against PTBatcher (or why prefer you
> hugin_stitch_project)?
>
If there is only one file you want to process, then hugin_stitch_project
would be better. But if there are several files
then of course PTBatcher. This isn't much of a problem for the end user.
Just tell him to open it manually via the file chooser.
Niklas
diff --git a/src/hugin1/hugin/PanoPanel.cpp b/src/hugin1/hugin/PanoPanel.cpp
--- a/src/hugin1/hugin/PanoPanel.cpp
+++ b/src/hugin1/hugin/PanoPanel.cpp
@@ -1257,7 +1257,7 @@
//We need to call the binary from it's own bundle and not from the hugin
bundle otherwise we get no menu as OSX assumes that the hugin bundle
//will provide the menu
cmd = hugin_utils::wxQuoteString(cmd);
- cmd += wxT("
")+switches+hugin_utils::wxQuoteFilename(projectFile)+wxT("
")+hugin_utils::wxQuoteFilename(dlg.GetPath());
+ cmd += wxT("
")+switches+hugin_utils::wxQuoteFilename(dlg.GetPath())+wxT("
")+hugin_utils::wxQuoteFilename(projectFile);
wxExecute(cmd);
}
else
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/13e2e0f5-d871-4232-8651-a54563849795%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/hugin1/hugin/PanoPanel.cpp b/src/hugin1/hugin/PanoPanel.cpp
--- a/src/hugin1/hugin/PanoPanel.cpp
+++ b/src/hugin1/hugin/PanoPanel.cpp
@@ -1257,7 +1257,7 @@
//We need to call the binary from it's own bundle and not from the hugin bundle otherwise we get no menu as OSX assumes that the hugin bundle
//will provide the menu
cmd = hugin_utils::wxQuoteString(cmd);
- cmd += wxT(" ")+switches+hugin_utils::wxQuoteFilename(projectFile)+wxT(" ")+hugin_utils::wxQuoteFilename(dlg.GetPath());
+ cmd += wxT(" ")+switches+hugin_utils::wxQuoteFilename(dlg.GetPath())+wxT(" ")+hugin_utils::wxQuoteFilename(projectFile);
wxExecute(cmd);
}
else