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.