Commit bde9f1ab authored by Piotr Gawron's avatar Piotr Gawron
Browse files

description of transcription site is centered

parent bd811459
minerva (12.2.0~beta.2) unstable; urgency=medium
* Bug fix: description of transcription site is centered (#720)
* Bug fix: selecting too few parameters in export doesn't throw reportable
error (#721)
* Bug fix: changes in selected checkbox in add project dialog block UI (#722)
......
......@@ -699,7 +699,9 @@ public abstract class SpeciesConverter<T extends Species> extends ElementConvert
y = transcriptionSite.getPosition().getY() - DEFAULT_MODIFICATION_DIAMETER - DEFAULT_SPECIES_FONT_SIZE / 2;
if (transcriptionSite.getName() != null && !transcriptionSite.getName().isEmpty()) {
drawText(new Point2D.Double(x, y), transcriptionSite.getName(), graphics, true, false);
Point2D centerTextPoint = new Point2D.Double(
transcriptionSite.getPosition().getX() + transcriptionSite.getWidth() / 2, y);
drawText(centerTextPoint, transcriptionSite.getName(), graphics, true, false);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment