when saving file, angles are rounded to nearest degree
Bug #1270886 reported by
Andrew Armenia
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
Fix Released
|
Medium
|
Bert Timmerman |
Bug Description
Pcb will happily read a file with a hand-created outline layer containing arcs with non-integer StartAngles and DeltaAngles. But when saving the file, these angles get rounded to the nearest degree. This is problematic, for example, when creating board outlines containing large-radius arcs. I've attached a trivial patch to write out angles to the nearest thousandth of a degree, instead of the nearest degree, when saving a file.
Changed in pcb: | |
assignee: | nobody → Andrew Poelstra (asp11) |
status: | New → Confirmed |
Changed in geda-project: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in pcb: | |
milestone: | next-bug-release → future-bug-release |
Changed in pcb: | |
status: | In Progress → Fix Committed |
Changed in pcb: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The current version 20110603 of the file format does read
floating-point angles correctly. The previous version
20100606 appears to me to read floating-point angles without
error, though it rounds them to the nearest integer.
The previous version to that, 20070407, is the same. (This
version bump was due to Peter Clifton's polygon improvements.)
So I'd be happy to see this patch pushed. (When I get a chance
to actually compile a 2007 pcb and confirm what I wrote above,
I may do it myself.)
-- www.wpsoftware. net/andrew
Andrew Poelstra
Email: apoelstra at wpsoftware.net
Web: http://