From 81c24ab20a29d2674d54a5e04a73b5ca276dc10d Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 23 Jan 2015 13:27:10 +0000 Subject: [PATCH] JAL-1635 show warning if less than 3 columns selected for translation --- src/jalview/gui/AlignFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 1.7.10.2