Check bounds of loaded comp
authoramwaterhouse <Andrew Waterhouse>
Fri, 4 May 2007 13:56:18 +0000 (13:56 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 4 May 2007 13:56:18 +0000 (13:56 +0000)
src/jalview/gui/Jalview2XML.java

index 16d7bd5..48ba7f0 100755 (executable)
@@ -1891,7 +1891,9 @@ public class Jalview2XML
               {
                 if(frames[f] instanceof AppJmol)
                 {
-                  if(frames[f].getWidth()==width && frames[f].getHeight()==height)
+                  if (frames[f].getX() == x && frames[f].getY() == y
+                      && frames[f].getHeight() == height
+                      && frames[f].getWidth() == width)
                   {
                     comp = frames[f];
                     break;