X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosUI.java;h=fa259906769a9da7101c9bf1c064ce43a21bab93;hp=74e074632b81a263f27b939fee753067e92d28c4;hb=383dec4449f8160c06804fba06290e7a07335934;hpb=04c6f4c54ac10f6464ffb8cab2186ac2b2eafb00 diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index 74e07463..fa259906 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -492,8 +492,8 @@ public class AltosUI extends AltosUIFrame { if (states == null) return false; try { - AltosFlightStats stats = new AltosFlightStats(states); System.out.printf("%s:\n", file.toString()); + AltosFlightStats stats = new AltosFlightStats(states); if (stats.serial != AltosLib.MISSING) System.out.printf("Serial: %5d\n", stats.serial); if (stats.flight != AltosLib.MISSING) @@ -612,15 +612,13 @@ public class AltosUI extends AltosUIFrame { File file = new File(args[i]); switch (process) { case process_none: - case process_graph: if (altosui == null) altosui = new AltosUI(); + case process_graph: if (!process_graph(file)) ++errors; break; case process_replay: - if (altosui == null) - altosui = new AltosUI(); if (!process_replay(file)) ++errors; break;