Merge branch 'develop' into spike/JAL-1950_hmmer3client
[jalview.git] / src / jalview / gui / AlignViewport.java
index 7e77bec..15c0971 100644 (file)
@@ -254,9 +254,11 @@ public class AlignViewport extends AlignmentViewport
 
     setFont(new Font(fontName, style, Integer.parseInt(fontSize)), true);
 
-    alignment
-            .setGapCharacter(Cache.getDefault("GAP_SYMBOL", "-").charAt(0));
-
+    if (Cache.getDefault("NORMALISE_GAPS", true))
+    {
+      alignment.setGapCharacter(Cache.getDefault("GAP_SYMBOL", "-").charAt(
+              0));
+    }
     // We must set conservation and consensus before setting colour,
     // as Blosum and Clustal require this to be done
     if (hconsensus == null && !isDataset)