Skip to content

Commit

Permalink
transform Local Measure in arrow styles
Browse files Browse the repository at this point in the history
closes #193
  • Loading branch information
bergey committed Jun 4, 2014
1 parent b31be6a commit f057ada
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Diagrams/TwoD/Arrow.hs
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,10 @@ arrow' opts len = mkQD' (DelayedLeaf delayedArrow)

-- The head size, tail size, head gap, and tail gap are obtained
-- from the style and converted to output units.
hSize = fromMeasure gToO nToO (opts ^. headLength)
tSize = fromMeasure gToO nToO (opts ^. tailLength)
hGap = fromMeasure gToO nToO (opts ^. headGap)
tGap = fromMeasure gToO nToO (opts ^. tailGap)
hSize = fromMeasure gToO nToO . transform tr $ opts ^. headLength
tSize = fromMeasure gToO nToO . transform tr $ opts ^. tailLength
hGap = fromMeasure gToO nToO . transform tr $ opts ^. headGap
tGap = fromMeasure gToO nToO . transform tr $ opts ^. tailGap

-- Make the head and tail and save their widths.
(h, hWidth') = mkHead hSize opts' gToO nToO
Expand Down

0 comments on commit f057ada

Please sign in to comment.