avoid race condition by setting sequence logo flag directly rather than via accessor...
authorjprocter <Jim Procter>
Fri, 20 Aug 2010 14:56:26 +0000 (14:56 +0000)
committerjprocter <Jim Procter>
Fri, 20 Aug 2010 14:56:26 +0000 (14:56 +0000)
src/jalview/gui/AlignViewport.java
src/jalview/gui/Jalview2XML.java

index 63695b6..eedc863 100755 (executable)
@@ -589,6 +589,7 @@ public class AlignViewport implements SelectionSource
 
     protected void updateAnnotation(boolean immediate)
     {
+      // TODO: make calls thread-safe, so if another thread calls this method, it will either return or wait until one calculation is finished.
       if (immediate
               || (!updatingConsensus && consensus != null && hconsensus != null))
       {
index 4b6879c..fd93d7f 100755 (executable)
@@ -2877,11 +2877,11 @@ public class Jalview2XML
     }
     if (view.hasShowSequenceLogo())
     {
-      af.viewport.setShowSequenceLogo(view.getShowSequenceLogo());
+      af.viewport.showSequenceLogo = view.getShowSequenceLogo();
     }
     else
     {
-      af.viewport.setShowSequenceLogo(false);
+      af.viewport.showSequenceLogo = false;
     }
     if (view.hasShowDbRefTooltip())
     {