Position Relative To uses centroid, not origin

Bug #1793984 reported by PCB Wiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
High
Jeff Young

Bug Description

In testing Position Relative To, I see it works nicely, allowing a select-snap, but strangely it seems to uses part-centroid, not part-origin ? (at least in my moderately recent build)

Centroid is ok for Via, and mounting holes, and also for many simple SMD parts, centroid is == origin, but for many other parts the centroid is not-quite the part origin.

It seems a strange default choice ?

Could it be fixed to be origin, or if there was some deliberate reason for doing centroid, allow users a choice of
[] Snap using Part origin (this is the same as move, & same as manual copy/paste of XY)
[] Snap using Part centroid

related reports suggest Position Relative To is a somewhat new feature, in both footprint editor & pcbnew.

https://bugs.launchpad.net/kicad/+bug/1660154

https://bugs.launchpad.net/kicad/+bug/1778624

That would mean this fix should be applied to both use cases ?

Tags: pcbnew
Revision history for this message
Jeff Young (jeyjey) wrote :

Not intentional; just a hold-over from the previous implementation.

Changed in kicad:
status: New → Confirmed
assignee: nobody → Jeff Young (jeyjey)
importance: Undecided → High
milestone: none → 5.1.0
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision f3c6e1fb622dad5c18fa8978160114954dac380d
https://git.launchpad.net/kicad/patch/?id=f3c6e1fb622dad5c18fa8978160114954dac380d

Changed in kicad:
status: Confirmed → Fix Committed
Revision history for this message
Franck78 (fbourdonnec) wrote :

Isn't this bug #1793888 similar ?

Revision history for this message
Jeff Young (jeyjey) wrote :

Same conceptual problem, but different code implementing it.

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.