I have been digging and understanding more - I believe line 717 in 
edit_tool_move_fct.cpp should be:

                    nextItem->Move( controls->GetMousePosition( true ) - 
nextItem->GetPosition());

This moves the item to the current cursor, without destroying the shape of 
the track if the item is a track.
A set position method would be really nice to have, but this in effect does 
the same thing.

Feel free to direct me on what to do with this information. I am just 
getting my feet and Im an adult, so just let me know directly if posting 
this information here is the wrong thing to do. I think I found an issue, 
and the solution, but what to do next - I have no idea. 

Regards
Stuart


On Thursday, July 6, 2023 at 3:27:09 PM UTC+1 Stuart Tyler wrote:

> Hi,
> I have my KiCad Windows development system going and browsing my way 
> through pcbnew, getting up to speed on the internal workings of moving and 
> dragging.
>
> I think I have observed an issue in moveIndividually, the ctrl-M command. 
> When you select multiple traces, the first trace is moved nicely, but every 
> trace after that is mangled. I believe this is because in 
> edit_tool_move_fct.cpp on line 717:
>  nextItem->SetPosition( controls->GetMousePosition( true ) );
>
> When the item is a track, only one end of the track is moved, and so now 
> the tack shape is mangled.
>
> When this line is commented out, the track shape is maintained, but the 
> grab position is not at the track and is really annoying. As this is my 
> first playing with KiCad and pcbnew, I am unsure on how to make the mouse 
> position warp to the current track location, or move the track to the 
> current mouse location without damaging the track shape.
>
> This would then fix the moveIndividually ctrl-M command for tracks.
>
> Regards
> Stuart
>

-- 
You received this message because you are subscribed to the Google Groups 
"KiCad Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/kicad.org/d/msgid/devlist/f51b36b1-e094-4727-b0cf-5e6f56c678a1n%40kicad.org.

Reply via email to