Fix fatal bug in the last commit: restore setting argc

Initialization of wxApp::argc was mistakenly removed, breaking the code
iterating over wxApp::argv from 0 to it.

See https://github.com/wxWidgets/wxWidgets/pull/462
This commit is contained in:
Vadim Zeitlin
2017-04-16 18:06:03 +02:00
parent 70a499f635
commit 5bf8fb1879

View File

@@ -335,6 +335,7 @@ bool wxEntryStart(int& argc, wxChar **argv)
// remember, possibly modified (e.g. due to removal of toolkit-specific
// parameters), command line arguments in member variables
app->argc = argc;
app->argv.Init(argc, argv);
wxCallAppCleanup callAppCleanup(app.get());