From 1834a25ff7a14c7fbb015780e5b0b0af085bf7d9 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 28 Oct 2011 15:42:18 +0100 Subject: [PATCH] JAL-580 - display position where wuss parsing error occured --- src/jalview/renderer/AnnotationRenderer.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index 5c03881..e8b2e72 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -344,7 +344,11 @@ public class AnnotationRenderer } } } - + if (!row.isValidStruc()) + { + g.setColor(Color.orange); + g.fillRect((int)row.getInvalidStrucPos()*charWidth, y, charWidth, charHeight); + } if (validCharWidth && validRes && row.annotations[column].displayCharacter != null @@ -471,6 +475,15 @@ public class AnnotationRenderer { validEnd = true; } + if ((row.annotations == null) || (row.annotations.length <= column) + || (row.annotations[column] == null)) + { + validRes = false; + } + else + { + validRes = true; + } // x ++; -- 1.7.10.2