← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Pcbnew: update rats nest after exactly move

 

I can't seem to reproduce this bug on 5645.  When I use the right
click context menu for a track segment or a footprint in pcbnew the
rastnest is updated accordingly.

2015-05-13 20:30 GMT+02:00 Joel Matějka <JoelM@xxxxxxxxx>:
> Hi,
>
> I haven't specified this patch enough. When you move a segment (or a pad) by
> specifying offset in move exactly function in on right click menu, the
> segment is moved, but rats nest is not recalculated (not shown new
> disconnection). When you click undo and redo, rats nest is shown correctly.
> I'm sure that rats nets should be recalculated also after the move.
>
> Best Regards
> Joel
>
> ---------- Původní zpráva ----------
> Od: Joel Matějka <JoelM@xxxxxxxxx>
> Komu: kicad-developers@xxxxxxxxxxxxxxxxxxx
> Datum: 9. 5. 2015 17:58:51
> Předmět: [Kicad-developers] [PATCH] Pcbnew: update rats nest after exactly
> move
>
>
> Hi,
>
> there is a patch that updates rats nest after moving "board item" exactly
> (segment or pad).
>
> Best Regards
> Joel
>
> === modified file 'pcbnew/edit.cpp'
> --- pcbnew/edit.cpp 2015-04-22 16:39:49 +0000
> +++ pcbnew/edit.cpp 2015-05-09 15:32:18 +0000
> @@ -1532,6 +1532,11 @@
>
>              item->Move( translation );
>              item->Rotate( item->GetPosition(), rotation );
> +
> +            // Check for rats nest
> +            if( GetBoard()->IsElementVisible( RATSNEST_VISIBLE ) )
> +                Compile_Ratsnest( NULL, true );
> +
>              m_canvas->Refresh();
>          }
>      }
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>


Follow ups

References