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:
167f4ca
)
documentation
author
jprocter
<Jim Procter>
Thu, 10 May 2007 08:41:07 +0000
(08:41 +0000)
committer
jprocter
<Jim Procter>
Thu, 10 May 2007 08:41:07 +0000
(08:41 +0000)
src/jalview/gui/AlignFrame.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AlignFrame.java
b/src/jalview/gui/AlignFrame.java
index
70752be
..
c7887da
100755
(executable)
--- a/
src/jalview/gui/AlignFrame.java
+++ b/
src/jalview/gui/AlignFrame.java
@@
-1619,19
+1619,17
@@
public class AlignFrame
AlignmentAnnotation sann[] = sequences[i].getAnnotation();
if (sann == null)
continue;
AlignmentAnnotation sann[] = sequences[i].getAnnotation();
if (sann == null)
continue;
- for (int avnum = 0; avnum < alview.length; avnum++)
+ for (int avnum=0;avnum<alview.length; avnum++)
{
{
-
- if (alview[avnum] != alignment)
+ if (alview[avnum]!=alignment)
{
// duplicate in a view other than the one with input focus
{
// duplicate in a view other than the one with input focus
- int avwidth = alview[avnum].getWidth() + 1;
-
- // this relies on sann being preserved after we modify the sequence's annotation array
+ int avwidth = alview[avnum].getWidth()+1;
+ // this relies on sann being preserved after we
+ // modify the sequence's annotation array for each duplication
for (int a=0; a<sann.length; a++)
{
AlignmentAnnotation newann = new AlignmentAnnotation(sann[a]);
for (int a=0; a<sann.length; a++)
{
AlignmentAnnotation newann = new AlignmentAnnotation(sann[a]);
-
sequences[i].addAlignmentAnnotation(newann);
newann.padAnnotation(avwidth);
alview[avnum].addAnnotation(newann); // annotation was duplicated earlier
sequences[i].addAlignmentAnnotation(newann);
newann.padAnnotation(avwidth);
alview[avnum].addAnnotation(newann); // annotation was duplicated earlier