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
Merge branch 'feature/JAL-3063JAXB' into feature/JAL-3063jaxbNoCastor
[jalview.git]
/
src
/
jalview
/
workers
/
AnnotationWorker.java
diff --git
a/src/jalview/workers/AnnotationWorker.java
b/src/jalview/workers/AnnotationWorker.java
index
8569039
..
8f37f15
100644
(file)
--- a/
src/jalview/workers/AnnotationWorker.java
+++ b/
src/jalview/workers/AnnotationWorker.java
@@
-51,7
+51,7
@@
class AnnotationWorker extends AlignCalcWorker
AnnotationProviderI counter)
{
super(viewport, panel);
AnnotationProviderI counter)
{
super(viewport, panel);
- ourAnnots = new ArrayList<AlignmentAnnotation>();
+ ourAnnots = new ArrayList<>();
this.counter = counter;
calcMan.registerWorker(this);
}
this.counter = counter;
calcMan.registerWorker(this);
}
@@
-121,7
+121,10
@@
class AnnotationWorker extends AlignCalcWorker
if (ap != null)
{
ap.adjustAnnotationHeight();
if (ap != null)
{
ap.adjustAnnotationHeight();
- ap.paintAlignment(true);
+ // TODO: only need to update colour and geometry if panel height changes
+ // and view is coloured by annotation, and the annotation is actually
+ // changed!
+ ap.paintAlignment(true, true);
}
}
}
}