fix to ensure multiple accessions can be fetched for sources like the PDB (see jalvie...
[jalview.git] / src / MCview / Zsort.java
index 59f0bfc..05a1fc9 100755 (executable)
@@ -41,7 +41,7 @@ public class Zsort
 
   private int partition(Vector bonds, int p, int r)
   {
-    float x = ( (Bond) bonds.elementAt(p)).start[2];
+    float x = ((Bond) bonds.elementAt(p)).start[2];
     int i = p - 1;
     int j = r + 1;
     Bond tmp;
@@ -50,15 +50,13 @@ public class Zsort
       do
       {
         j--;
-      }
-      while ( (j >= 0) && ( ( (Bond) bonds.elementAt(j)).start[2] > x));
+      } while ((j >= 0) && (((Bond) bonds.elementAt(j)).start[2] > x));
 
       do
       {
         i++;
-      }
-      while ( (i < bonds.size()) &&
-             ( ( (Bond) bonds.elementAt(i)).start[2] < x));
+      } while ((i < bonds.size())
+              && (((Bond) bonds.elementAt(i)).start[2] < x));
 
       if (i < j)
       {