Ratsnest is updated, when there are tracks added using the P&S router.
This commit is contained in:
parent
5fe20bbc70
commit
c79962635e
|
@ -836,7 +836,7 @@ void RN_DATA::Recalculate( int aNet )
|
||||||
updateNet( i );
|
updateNet( i );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else // Recompute only specific net
|
else if( aNet > 0 ) // Recompute only specific net
|
||||||
{
|
{
|
||||||
updateNet( aNet );
|
updateNet( aNet );
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
#include <class_board_item.h>
|
#include <class_board_item.h>
|
||||||
#include <class_pad.h>
|
#include <class_pad.h>
|
||||||
#include <class_track.h>
|
#include <class_track.h>
|
||||||
|
#include <ratsnest_data.h>
|
||||||
#include <layers_id_colors_and_visibility.h>
|
#include <layers_id_colors_and_visibility.h>
|
||||||
|
|
||||||
// an ugly singleton for drawing debug items within the router context.
|
// an ugly singleton for drawing debug items within the router context.
|
||||||
|
@ -626,6 +627,7 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode )
|
||||||
newBI->ClearFlags();
|
newBI->ClearFlags();
|
||||||
m_view->Add( newBI );
|
m_view->Add( newBI );
|
||||||
m_board->Add( newBI );
|
m_board->Add( newBI );
|
||||||
|
m_board->GetRatsnest()->Update( static_cast<BOARD_CONNECTED_ITEM*>( newBI ) );
|
||||||
newBI->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY );
|
newBI->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -757,6 +759,8 @@ void PNS_ROUTER::StopRouting()
|
||||||
|
|
||||||
// highlightCurrent(false);
|
// highlightCurrent(false);
|
||||||
|
|
||||||
|
// Update the ratsnest
|
||||||
|
m_board->GetRatsnest()->Recalculate( m_currentNet );
|
||||||
EraseView();
|
EraseView();
|
||||||
|
|
||||||
m_state = IDLE;
|
m_state = IDLE;
|
||||||
|
|
Loading…
Reference in New Issue