WangTonio / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

The Restart button makes Testbed go back to Tiles rather than restart the current test #342

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile 2.3.2 and run Testbed.
2. Choose any test other than Tiles, then click Restart.
3. Rather than restarting the current test, the program goes back to Tiles.

What is the expected output? What do you see instead?
Expected: when I click Restart I expect Testbed to restart the current test, 
like it did on 2.3.0. What I see instead: rather than restarting the current 
test (which is not Tiles), the program goes back to Tiles.

What version of the product are you using? On what operating system?
2.3.2 on Windows 8.1 Pro x64, compiled with MinGW-builds gcc 4.9.1 32-bit (the 
one bundled with Qt 5.4/Qt Creator 3.3.0).

Please provide any additional information below.
I've attached a patch that maked the Restart button behave the same way it did 
in 2.3.0; if the change in behavior was on purpose, please close the issue.
By the way, Testbed wouldn't compile as-is without #include <crtdbg.h> on my 
platform. The patch addresses this as well.

Original issue reported on code.google.com by georger....@gmail.com on 10 Feb 2015 at 1:52

Attachments: