https://issues.apache.org/bugzilla/show_bug.cgi?id=51043

--- Comment #6 from Andreas L. Delmelle <adelme...@apache.org> 2011-04-11 
11:30:24 EDT ---
(In reply to comment #5)
> I have run into this before myself. For me an acceptable workaround was to
> change the units of left/right margins to match and avoid the rounding errors,

In this case, even using "mm" everywhere leads to the issue, and it will be
hard to fix this so it works for all cases, unless we either start storing the
mpt values as double, and truncate only the result, or calculate with the
original value, including the units. In that case, it would work here, too: 210
- 30 = 210 - 1 - 29 = 180.

Using a lower limit would indeed be a hack (hence: quick fix), but it could be
argued that such small differences will normally not be the result from actual
differences, intended by the author/user.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to