From d1279cb823245d1a412cd2f66771c6505ee538c4 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 4 May 2007 13:56:18 +0000 Subject: [PATCH] Check bounds of loaded comp --- src/jalview/gui/Jalview2XML.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 1.7.10.2