git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Submissions for secondary structure prediction are now filtered to remove empty seque...
[jalview.git]
/
src
/
jalview
/
gui
/
SeqCanvas.java
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
fcec1ac
..
42424d9
100755
(executable)
--- a/
src/jalview/gui/SeqCanvas.java
+++ b/
src/jalview/gui/SeqCanvas.java
@@
-279,10
+279,13
@@
public class SeqCanvas extends JComponent
// Set this to false to force a full panel paint
\r
public void paintComponent(Graphics g)
\r
{
\r
// Set this to false to force a full panel paint
\r
public void paintComponent(Graphics g)
\r
{
\r
+ super.paintComponent(g);
\r
+
\r
sr.renderGaps(av.renderGaps);
\r
\r
sr.renderGaps(av.renderGaps);
\r
\r
- if ((img != null) &&
\r
- (fastPaint && getVisibleRect() != g.getClipBounds()))
\r
+ if ( img != null && (fastPaint
\r
+ || (getVisibleRect().width != g.getClipBounds().width)
\r
+ || (getVisibleRect().height != g.getClipBounds().height)))
\r
{
\r
g.drawImage(img, 0, 0, this);
\r
fastPaint = false;
\r
{
\r
g.drawImage(img, 0, 0, this);
\r
fastPaint = false;
\r
@@
-290,8
+293,6
@@
public class SeqCanvas extends JComponent
}
\r
\r
\r
}
\r
\r
\r
-
\r
-
\r
// this draws the whole of the alignment
\r
imgWidth = getWidth();
\r
imgHeight = getHeight();
\r
// this draws the whole of the alignment
\r
imgWidth = getWidth();
\r
imgHeight = getHeight();
\r
@@
-328,7
+329,7
@@
public class SeqCanvas extends JComponent
\r
if (pdbCanvas != null)
\r
{
\r
\r
if (pdbCanvas != null)
\r
{
\r
- pdbCanvas.updateSeqColours();
\r
+ pdbCanvas.updateSeqColours();
\r
}
\r
\r
}
\r
}
\r
\r
}
\r