Ticket #7 (closed defect: fixed)
Translate causes incorrect bounds.
| Reported by: | fryguybob@… | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | core | Version: | |
| Keywords: | Cc: |
Description
For cases where the translation keeps the origin inside the bounds I would expect translate and rebase to behave the same:
test d = do
putStrLn $ "t = " ++ show t ++ ", r = " ++ show r
return $ t == r
where t = bt (1,0)
r = br (1,0)
(Bounds bt) = bounds dt
(Bounds br) = bounds dr
dt = translate (0.1, 0) d
dr = rebase (Const (-0.1, 0)) d
Currently this gives:
*Main> test (box :: Diagram Cairo) t = 1.222222222222222, r = 1.1 False
Change History
Note: See
TracTickets for help on using
tickets.
