JAL-1161 stick to api
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index d0af0a5..e66eaa0 100755 (executable)
@@ -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