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

Merge branch '579-shifted-icons-with-modified-reaction-boxes' into 'devel_12.1.x'

Resolve "Shifted icons within modified reaction boxes"

See merge request !511
parents 373c17ef 6d9990e7
No related branches found
No related tags found
2 merge requests!541version 12.1.3 into master,!511Resolve "Shifted icons within modified reaction boxes"
Pipeline #7507 passed
......@@ -161,6 +161,9 @@ public class ReactionConverter extends BioEntityConverter<Reaction> {
// draw rect border
graphics.draw(rect);
// unrotate the graphics
graphics.rotate(-angle, pointX, pointY);
// draw text inside rect
Font tmpFont = graphics.getFont();
graphics.setFont(descFont);
......@@ -182,8 +185,6 @@ public class ReactionConverter extends BioEntityConverter<Reaction> {
graphics.draw(path);
}
// unrotate the graphics
graphics.rotate(-angle, pointX, pointY);
}
}
......
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