Hi Niklas,

Am Dienstag, 24. Mai 2016 20:45:57 UTC+2 schrieb Niklas Mischkulnig:
>
> Thomas, I rolled back to wxWidgets 3.0. 
> Can I hardcode wxColour col(128,128,128) (dark grey, how it looked 
> previously)
> because that color isn't available via wxSYS_COLOUR_?*?*?  in 3.1?
>
Yes, no problem, if you like. Maybe wrapping into #if defined __WXMAC__ && 
wxCHECK_VERSION(3,1,0) 

>
> When I call it like this, the log windows opens, the cursor turns into a 
> watch and I can't do anything, because it tries to stitch the
> first (=invalid) project file(see below), code in repository calls 
> PTBatcherGUI this way.
> PTBatcherGUI.app/Contents/MacOS/PTBatcherGUI  -b -v 
> "/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692" 
> "/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692.pto"
>

I changed the order in Hugin back. So it's in sync with Windows and Linux 
again. I was still wondering why it worked on Mac with the false order.
 

>
> This way(arguments swapped), it gets added once correctly and the second 
> entry has the prefix as the projectfile and "first image - last image" as 
> output prefix:
> PTBatcherGUI.app/Contents/MacOS/PTBatcherGUI  -b -v 
> "/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692.pto" 
> "/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692"
>
> If you checked already the call from hugin, we have to go a step further 
and debug it in PTBatcherGUI. Could you apply the attached patch and then 
call PTBatcherGUI from Hugin. This should print a window with the 
parameters PTBatcherGUI gets. Maybe this shed some light on the issue.

Thomas

-- 
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 hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/7d1ac7dc-92aa-4664-a10c-b61757d57e91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent  5422e269f546cdad9d305767a1e608420d10bcf3

diff --git a/src/hugin1/ptbatcher/PTBatcherGUI.cpp b/src/hugin1/ptbatcher/PTBatcherGUI.cpp
--- a/src/hugin1/ptbatcher/PTBatcherGUI.cpp
+++ b/src/hugin1/ptbatcher/PTBatcherGUI.cpp
@@ -167,6 +167,12 @@
     };
     wxCmdLineParser parser(cmdLineDesc, argc, argv);
 
+    for (int i = 0; i < argc; ++i)
+    {
+        wxString s;
+        s << "argv " << i << ": " << argv[i];
+        wxLogMessage(s);
+    };
     switch ( parser.Parse() )
     {
         case -1: // -h or --help was given, and help displayed so exit
@@ -267,6 +273,9 @@
             while (parser.GetParamCount() > count)
             {
                 wxString param = parser.GetParam(count);
+                wxString s;
+                s << "Param " << count << ": " << param;
+                wxLogMessage(s);
                 count++;
                 if (!projectSpecified)	//next parameter must be new script file
                 {

Reply via email to