From: gmungoc Date: Fri, 23 Jan 2015 13:27:10 +0000 (+0000) Subject: JAL-1635 show warning if less than 3 columns selected for translation X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=81c24ab20a29d2674d54a5e04a73b5ca276dc10d;p=jalview.git JAL-1635 show warning if less than 3 columns selected for translation --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 3f0bb8c..84872ca 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -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");