git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e281f3f
)
JAL-244 JAL-4090 use current IdWidth when exporting unwrapped alignment image.
author
James Procter
<j.procter@dundee.ac.uk>
Fri, 29 Sep 2023 16:57:41 +0000
(17:57 +0100)
committer
James Procter
<j.procter@dundee.ac.uk>
Fri, 29 Sep 2023 16:57:41 +0000
(17:57 +0100)
src/jalview/gui/AlignmentPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AlignmentPanel.java
b/src/jalview/gui/AlignmentPanel.java
index
7ed5227
..
e2c91ba
100644
(file)
--- a/
src/jalview/gui/AlignmentPanel.java
+++ b/
src/jalview/gui/AlignmentPanel.java
@@
-998,7
+998,15
@@
public class AlignmentPanel extends GAlignmentPanel implements
Graphics idGraphics, Graphics alignmentGraphics)
throws PrinterException
{
- final int idWidth = getVisibleIdWidth(false);
+ final int idWidth;
+ if (getIdPanel()!=null && getIdPanel().getWidth()>0)
+ {
+ // use the current IdPanel's width, if its set and non-zero
+ idWidth = getIdPanel().getWidth();
+ } else {
+ // otherwise calculate it
+ idWidth = getVisibleIdWidth(false);
+ }
/*
* Get the horizontal offset to where we draw the sequences.