JAL-1635 show warning if less than 3 columns selected for translation
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 23 Jan 2015 13:27:10 +0000 (13:27 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 23 Jan 2015 13:27:10 +0000 (13:27 +0000)
src/jalview/gui/AlignFrame.java

index 3f0bb8c..84872ca 100644 (file)
@@ -4889,7 +4889,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
               JOptionPane.ERROR_MESSAGE);
       return;
     }
-    if (al == null)
+    if (al == null || al.getHeight() == 0)
     {
       final String msg = MessageManager
               .getString("label.select_at_least_three_bases_in_at_least_one_sequence_to_cDNA_translation");