[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Wed Apr 18 15:57:01 UTC 2007
gordonp
Wed Apr 18 11:57:00 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv12240/src/main/ca/ucalgary/seahawk/gui
Modified Files:
MobyContentGUI.java
Log Message:
Fixed possible string out of bounds exception for tab labels
moby-live/Java/src/main/ca/ucalgary/seahawk/gui MobyContentGUI.java,1.6,1.7
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentGUI.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentGUI.java 2007/04/03 02:34:08 1.6
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentGUI.java 2007/04/18 15:57:00 1.7
@@ -667,6 +667,9 @@
}
else{
int allowableLen = MAX_TAB_NAME_LENGTH-shortName.length();
+ if(allowableLen > path.length()){
+ allowableLen = path.length();
+ }
shortName = shortName+"..."+path.substring(path.length()-allowableLen);
}
}
More information about the MOBY-guts
mailing list