JAL-1933 use constant for preference token
authorJim Procter <jprocter@issues.jalview.org>
Thu, 27 Apr 2017 16:43:32 +0000 (17:43 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 27 Apr 2017 16:43:32 +0000 (17:43 +0100)
src/jalview/gui/AlignViewport.java

index 992ec54..26a7a3a 100644 (file)
@@ -280,7 +280,7 @@ public class AlignViewport extends AlignmentViewport implements
       showGroupConsensus = Cache.getDefault("SHOW_GROUP_CONSENSUS", false);
       showConsensus = Cache.getDefault("SHOW_IDENTITY", true);
 
-      showOccupancy = Cache.getDefault("SHOW_OCCUPANCY", true);
+      showOccupancy = Cache.getDefault(Preferences.SHOW_OCCUPANCY, true);
     }
     initAutoAnnotation();
     String colourProperty = alignment.isNucleotide() ? Preferences.DEFAULT_COLOUR_NUC