JAL-1161 stick to api
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 19 May 2013 18:27:16 +0000 (19:27 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 24 May 2013 14:10:54 +0000 (15:10 +0100)
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