Skip to content

Commit

Permalink
Minor tweak, when checking minimum arrow length account the the size …
Browse files Browse the repository at this point in the history
…of the arrow head.
  • Loading branch information
johnmay committed Apr 11, 2016
1 parent 611e055 commit 42c229e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ public ReactionDepiction(RendererModel model,
yOffsets = new double[nRow + 1],
xOffsets = new double[nCol + 1]);

// avoid v. small arrows
if (prelimSideDim.w < minArrowWidth) {
// avoid v. small arrows, we take in to account the padding provided by the arrow head height/length
if (prelimSideDim.w < minArrowWidth - arrowHeight - arrowHeight) {
// adjust x-offset so side components are centered
double xAdjust = (minArrowWidth - prelimSideDim.w) / 2;
for (int i = 0; i < xOffsetSide.length; i++)
Expand Down

0 comments on commit 42c229e

Please sign in to comment.