make sure valid value for non-gapped calculation with zero symbol data
[jalview.git] / src / jalview / analysis / AAFrequency.java
index ca4e71c..75a777f 100755 (executable)
@@ -183,9 +183,11 @@ public class AAFrequency
       residueHash.put(PID_GAPS, new Float(percentage));
 
       if (nongap>0) {
+        // calculate for non-gapped too
         percentage = ((float) maxCount * 100) / nongap;
-        residueHash.put(PID_NOGAPS, new Float(percentage));
       }
+      residueHash.put(PID_NOGAPS, new Float(percentage));
+      
       result[i] = residueHash;
     }
   }