From: Jim Procter Date: Sun, 19 May 2013 18:27:16 +0000 (+0100) Subject: JAL-1161 stick to api X-Git-Tag: Jalview_2_9~249^2~29 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3e6daa2f37a6c2380cef64b34488a2978b808891;p=jalview.git JAL-1161 stick to api --- diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index d0af0a5..e66eaa0 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -760,7 +760,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, imgWidth = (av.endRes - av.startRes + 1) * av.charWidth; if (imgWidth < 1) return; - if (image == null || imgWidth != image.getWidth() + if (image == null || imgWidth != image.getWidth(this) || image.getHeight(this) != getHeight()) { try