From 3e6daa2f37a6c2380cef64b34488a2978b808891 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 19 May 2013 19:27:16 +0100 Subject: [PATCH] JAL-1161 stick to api --- src/jalview/gui/AnnotationPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.2