Patch #1941 2007-04-03 10:50

pauliusz

Patch for Bug #10792
Download
1941-Patch_for_Bug.patch (679 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2007-04-03 15:07
Assigned to
biplab
Index: src/sdk/toolsmanager.cpp
===================================================================
--- src/sdk/toolsmanager.cpp    (revision 3808)
+++ src/sdk/toolsmanager.cpp    (working copy)
@@ -132,9 +132,11 @@
             cmdline << baseDir << wxT("/" CONSOLE_RUNNER " ");
     }
 
-    if (!cmdline.Replace(_T("$SCRIPT"), cmd << _T(" ") << params))
+    cmd << _T(" ") << params;
+
+    if (!cmdline.Replace(_T("$SCRIPT"), cmd))
         // if they didn't specify $SCRIPT, append:
-        cmdline << cmd << _T(" ") << params;
+        cmdline << cmd;
 
     if(!(Manager::Get()->GetMacrosManager()))
         return false; // We cannot afford the Macros Manager to fail here!
biplab 2007-04-03 15:07

Applied in modified form.

Thanks for the fix.