← Back to team overview

kicad-developers team mailing list archive

Re: Pcbnew: update rats nest after exactly move

 

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";

Follow ups

References