From: amwaterhouse Date: Fri, 4 May 2007 13:56:18 +0000 (+0000) Subject: Check bounds of loaded comp X-Git-Tag: Release_2_3~56 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d1279cb823245d1a412cd2f66771c6505ee538c4;p=jalview.git Check bounds of loaded comp --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 16d7bd5..48ba7f0 100755 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -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;