avoid race condition when featureRenderer for structure is updated by its associated...
authorjprocter <Jim Procter>
Tue, 19 Apr 2011 13:56:07 +0000 (13:56 +0000)
committerjprocter <Jim Procter>
Tue, 19 Apr 2011 13:56:07 +0000 (13:56 +0000)
src/jalview/gui/FeatureRenderer.java

index db2ce7e..d613a30 100755 (executable)
@@ -211,7 +211,7 @@ public class FeatureRenderer implements jalview.api.FeatureRenderer
    * This is used by the Molecule Viewer and Overview to get the accurate
    * colourof the rendered sequence
    */
-  public int findFeatureColour(int initialCol, SequenceI seq, int column)
+  public synchronized int findFeatureColour(int initialCol, SequenceI seq, int column)
   {
     if (!av.showSequenceFeatures)
     {