From 5f6d27e2fea06533421c4e6d984c27933770aec9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 25 Jul 2000 15:38:38 +0000 Subject: [PATCH] parse cmd line a bit more correctly (in size setting testing code) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/controls/controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 5f623ff4cc..2b4e7e17c8 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -308,7 +308,7 @@ bool MyApp::OnInit() // parse the cmd line int x = 50, y = 50; - if ( argc == 2 ) + if ( argc == 3 ) { wxSscanf(argv[1], "%d", &x); wxSscanf(argv[2], "%d", &y);