Skip to content
Snippets Groups Projects
Commit e74c6152 authored by tjc's avatar tjc
Browse files

fix hyperlinks

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@8440 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent bdbe9e84
Branches
Tags
No related merge requests found
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/QualifierTextArea.java,v 1.15 2008-08-01 12:49:18 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/QualifierTextArea.java,v 1.16 2008-08-04 08:19:12 tjc Exp $
*/
package uk.ac.sanger.artemis.components;
......@@ -229,10 +229,17 @@ public class QualifierTextArea extends JTextPane
{
int ind = 0;
while((ind = indexOfIgnoreCase(s, db+":", ind)) > -1)
{
if(s.charAt(ind-1) != '%')
{
int ind2 = getEndOfLink(s,ind);
int ind3 = s.indexOf('/', ind);
if(ind3 < 0 || ind3 > ind2)
getStyledDocument().setCharacterAttributes(ind, ind2-ind,
getStyle("Blue Underline"), true);
}
ind = ind+1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment