From: MorellThomas Date: Wed, 31 Jan 2024 08:09:20 +0000 (+0100) Subject: Fix output points column labels X-Git-Tag: Release_2_11_4_0~31^2~24 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9a419b61b9b9b74655a7b324d3470dc09ebbaba0;p=jalview.git Fix output points column labels --- diff --git a/src/jalview/analysis/PaSiMap.java b/src/jalview/analysis/PaSiMap.java index a67f901..89bfff0 100755 --- a/src/jalview/analysis/PaSiMap.java +++ b/src/jalview/analysis/PaSiMap.java @@ -309,4 +309,9 @@ public class PaSiMap implements Runnable { return alignment.getAlignmentOutput(); } + + public byte getDim() + { + return dim; + } } diff --git a/src/jalview/viewmodel/PaSiMapModel.java b/src/jalview/viewmodel/PaSiMapModel.java index 84cc366..ba9ad6a 100644 --- a/src/jalview/viewmodel/PaSiMapModel.java +++ b/src/jalview/viewmodel/PaSiMapModel.java @@ -198,7 +198,7 @@ public class PaSiMapModel } else { - for (int d = 1, dmax = pasimap.component(1).length; d <= dmax; d++) + for (int d = 1, dmax = (int) pasimap.getDim(); d <= dmax; d++) { csv.append("," + d); }