git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
05e5900
)
catch occasional -ve imgWidth exception
author
jprocter
<Jim Procter>
Wed, 22 Aug 2007 13:31:38 +0000
(13:31 +0000)
committer
jprocter
<Jim Procter>
Wed, 22 Aug 2007 13:31:38 +0000
(13:31 +0000)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
487b832
..
0fb84b0
100755
(executable)
--- a/
src/jalview/gui/AnnotationPanel.java
+++ b/
src/jalview/gui/AnnotationPanel.java
@@
-548,7
+548,8
@@
public class AnnotationPanel
}
}
imgWidth = (av.endRes - av.startRes + 1) * av.charWidth;
}
}
imgWidth = (av.endRes - av.startRes + 1) * av.charWidth;
-
+ if (imgWidth<1)
+ return;
if (image == null || imgWidth != image.getWidth()
|| image.getHeight(this) != getHeight())
{
if (image == null || imgWidth != image.getWidth()
|| image.getHeight(this) != getHeight())
{