From: jprocter Date: Thu, 4 Sep 2008 12:59:58 +0000 (+0000) Subject: ensure all URL links on the features under the residue get an entry in the 'links... X-Git-Tag: Release_2_4_0 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fa80736070da3ccf2dbd28ef31ad9dcfe3231e22;p=jalview.git ensure all URL links on the features under the residue get an entry in the 'links' menu --- diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index 78fe40e..bf392e9 100755 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -1355,10 +1355,13 @@ public class SeqPanel extends Panel implements MouseMotionListener, { if (allFeatures[i].links != null) { - links = new Vector(); + if (links==null) + { + links = new Vector(); + } for (int j = 0; j < allFeatures[i].links.size(); j++) { - links.addElement(allFeatures[i].links.elementAt(j)); + links.addElement(allFeatures[i].links.elementAt(j)); } } }