From 9a419b61b9b9b74655a7b324d3470dc09ebbaba0 Mon Sep 17 00:00:00 2001 From: MorellThomas Date: Wed, 31 Jan 2024 09:09:20 +0100 Subject: [PATCH] Fix output points column labels --- src/jalview/analysis/PaSiMap.java | 5 +++++ src/jalview/viewmodel/PaSiMapModel.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); } -- 1.7.10.2