From: Nomi H. <no...@us...> - 2002-02-19 19:21:20
|
Update of /cvsroot/gmod/apollo/src/java/apollo/gui In directory usw-pr-cvs1:/tmp/cvs-serv27171 Modified Files: Tag: sanger_branch ApolloPanel.java Log Message: If sequence length isn't set (i.e. it's 0), use old method for setting view limits. (GFF files don't have sequence length.) Index: ApolloPanel.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/gui/ApolloPanel.java,v retrieving revision 1.90.2.39 retrieving revision 1.90.2.40 diff -C2 -d -r1.90.2.39 -r1.90.2.40 *** ApolloPanel.java 8 Feb 2002 19:58:02 -0000 1.90.2.39 --- ApolloPanel.java 19 Feb 2002 19:21:17 -0000 1.90.2.40 *************** *** 234,238 **** long [] globalLimits = new long [2]; ! if (seqlength < 0) { for (int i=0;i<linearViews.size();i++) { LinearViewI lv = ((LinearViewI)linearViews.elementAt(i)); --- 234,239 ---- long [] globalLimits = new long [2]; ! // If sequence length isn't known, use the old method for setting view limits ! if (seqlength <= 0) { for (int i=0;i<linearViews.size();i++) { LinearViewI lv = ((LinearViewI)linearViews.elementAt(i)); *************** *** 245,249 **** } } ! // Original approach resulted in huge limits because some XML files have features // that extend way beyond the range of the sequence itself. // Why not just use the start/end of the sequence as limits? Users will still --- 246,250 ---- } } ! // Original approach resulted in huge limits for some XML files that have features // that extend way beyond the range of the sequence itself. // Why not just use the start/end of the sequence as limits? Users will still |