Skip to content
Snippets Groups Projects
Commit bde9f1ab authored by Piotr Gawron's avatar Piotr Gawron
Browse files

description of transcription site is centered

parent bd811459
No related branches found
No related tags found
4 merge requests!678Merge 12.2.0 beta.2 into master,!67712.2.0~beta.2 into master,!676Devel 12.2.0~beta.2 into master,!653Resolve "Transcription Starting Sites - names are overlapping"
Pipeline #8898 passed
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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment