Brittons DRC fixes
Bug #1500042 reported by
Traumflug
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
In Progress
|
Low
|
Britton Kerin |
Bug Description
Whatever the plans are, let them track here and in a like-named bugfix branch.
Changed in geda-project: | |
importance: | Undecided → Low |
status: | New → In Progress |
Changed in pcb: | |
milestone: | none → next-bug-release |
importance: | Undecided → Low |
status: | New → In Progress |
Changed in pcb: | |
assignee: | nobody → Britton Kerin (britton-kerin) |
Changed in pcb: | |
milestone: | next-bug-release → future-bug-release |
Changed in pcb: | |
milestone: | pcb-4.1.1 → pcb-4.2.1 |
Changed in pcb: | |
milestone: | pcb-4.2.1 → future-feature-release |
To post a comment you must log in.
Did some whitespace editing to match surrounding code, rebased to latest master, then forwarded it to master.
Application behaviour is now just fine and intuitive. Excellent work!
Regarding refactoring:
- It looks like HID_SC_ CENTER_ IN_VIEWPORT and HID_SC_PAN_VIEWPORT do pretty much the same, so joining both would reduce code duplication. HID_SC_PAN_VIEWPORT is used for moving the mouse pointer by the keyboard (how ancient are such habits?!) and doesn't really work anyways (once the pointer gets too near to a pin or a via it's caught and can't leave this pin by keyboard operations).
- Making the flags a bitfield could further reduce code duplication, then one could send a ghid_send_ crosshair( x, y, HID_SC_WARP_POINTER & HID_SC_ PAN_VIEWPORT) to get the both.