Refresh track & via net names after netlist update

Fixes: lp:1749411
* https://bugs.launchpad.net/kicad/+bug/1749411
This commit is contained in:
Maciej Suminski 2018-02-15 09:49:53 +01:00
parent 4012aa70da
commit 1e054071fc
2 changed files with 17 additions and 5 deletions

View File

@ -37,6 +37,7 @@
#include <class_drawpanel.h>
#include <class_board.h>
#include <ratsnest_data.h>
#include <view/view.h>
#include <functional>
using namespace std::placeholders;
@ -113,6 +114,13 @@ void DIALOG_UPDATE_PCB::PerformUpdate( bool aDryRun )
m_frame->SetCurItem( NULL );
m_frame->SetMsgPanel( board );
// Update rendered tracks and vias net labels
auto view = m_frame->GetGalCanvas()->GetView();
// TODO is there a way to extract information about which nets were modified?
for( auto track : board->Tracks() )
view->Update( track );
std::vector<MODULE*> newFootprints = updater.GetAddedComponents();
// Spread new footprints.

View File

@ -169,6 +169,10 @@ void PCB_EDIT_FRAME::ReadPcbNetlist( const wxString& aNetlistFileName,
// Rebuild the board connectivity:
board->GetConnectivity()->Build( board );
// TODO is there a way to extract information about which nets were modified?
for( auto track : board->Tracks() )
view->Update( track );
SetMsgPanel( board );
m_canvas->Refresh();
}