Ratsnest algorithm takes into account pad offset.

This commit is contained in:
Maciej Suminski 2015-07-31 17:40:19 +02:00
parent e3cbfb0609
commit 73a6e95407
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ void RN_NET::Update()
void RN_NET::AddItem( const D_PAD* aPad )
{
RN_NODE_PTR node = m_links.AddNode( aPad->GetPosition().x, aPad->GetPosition().y );
RN_NODE_PTR node = m_links.AddNode( aPad->ShapePos().x, aPad->ShapePos().y );
node->AddParent( aPad );
m_pads[aPad] = node;