Mark all stages active in the default configuration so the length gets computed correctly.

This commit is contained in:
Kevin Ruland 2012-06-24 22:47:33 +00:00
parent ddc60c8855
commit 98674f5917

View File

@ -89,6 +89,7 @@ public class OpenRocketLoaderFragment extends Fragment {
OpenRocketLoaderResult result = new OpenRocketLoaderResult();
try {
OpenRocketDocument rocket = rocketLoader.load(arg0[0], new DatabaseMotorFinderWithMissingMotors());
rocket.getDefaultConfiguration().setAllStages();
result.rocket = rocket;
result.warnings = rocketLoader.getWarnings();
} catch (RocketLoadException ex) {