X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=micropeak%2FMicroRaw.java;h=5ff4f6b5f3a00bf8be6f64d2489ac42775b45c3c;hb=cb1e757d4d486d04af0219b3f36ad17ee8095110;hp=8857958fc754709ab53e6231f42fb42d1af91ede;hpb=97adfff4cfb67c17a96f3ff46606b4e439422b01;p=fw%2Faltos diff --git a/micropeak/MicroRaw.java b/micropeak/MicroRaw.java index 8857958f..5ff4f6b5 100644 --- a/micropeak/MicroRaw.java +++ b/micropeak/MicroRaw.java @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -29,7 +30,7 @@ public class MicroRaw extends JTextArea { StringWriter sw = new StringWriter(); try { data.export(sw); - setRows(data.pressures.length + 1); + setRows(data.length()); setText(sw.toString()); } catch (IOException ie) { setText(String.format("Error writing data: %s", ie.getMessage()));