]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdline.cpp
Remove the native toolbar from the frame in Destroy() rather than the destructor...
[wxWidgets.git] / src / common / cmdline.cpp
index e8058e297996081cbfe79f894147c349dcd18c86..1a143d476c342b6e2f7f53d05c96e8ba21fef375 100644 (file)
@@ -729,6 +729,10 @@ int wxCmdLineParser::Parse(bool showUsage)
                         m_data->m_arguments.insert
                             (m_data->m_arguments.begin() + n + 1, arg2);
                         count++;
+
+                        // only leave the part which wasn't extracted into the
+                        // next argument in this one
+                        arg = arg.Left(len + 1);
                     }
                     //else: it's our value, we'll deal with it below
                 }