git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into bug/JAL-4059_update_swingJS_for_JalviewJS_2_11_2_and_2_11_3
[jalview.git]
/
src
/
jalview
/
gui
/
AlignExportOptions.java
diff --git
a/src/jalview/gui/AlignExportOptions.java
b/src/jalview/gui/AlignExportOptions.java
index
c776d82
..
6ca21c7
100644
(file)
--- a/
src/jalview/gui/AlignExportOptions.java
+++ b/
src/jalview/gui/AlignExportOptions.java
@@
-32,6
+32,7
@@
import javax.swing.JPanel;
import jalview.api.AlignExportSettingsI;
import jalview.api.AlignViewportI;
import jalview.api.AlignExportSettingsI;
import jalview.api.AlignViewportI;
+import jalview.bin.Jalview;
import jalview.io.FileFormatI;
import jalview.util.MessageManager;
import jalview.io.FileFormatI;
import jalview.util.MessageManager;
@@
-72,12
+73,9
@@
public class AlignExportOptions extends JPanel
public static boolean isNeeded(AlignViewportI viewport,
FileFormatI format)
{
public static boolean isNeeded(AlignViewportI viewport,
FileFormatI format)
{
- if (viewport.hasHiddenColumns() || viewport.hasHiddenRows()
- || format.isComplexAlignFile())
- {
- return true;
- }
- return false;
+ return !Jalview.getInstance().isHeadlessMode()
+ && (viewport.hasHiddenColumns() || viewport.hasHiddenRows()
+ || format.isComplexAlignFile());
}
/**
}
/**