Ratsnest: Force update after modifying visible nets

After adjusting the ratsnest, we force the view update to re-draw the
ratsnest to the screen.  This is not required for Linux but seems to
have no ill effects and may help MSW show local ratsnest changes.

Possibly related to lp:1800301
This commit is contained in:
Seth Hillbrand 2018-11-19 21:09:42 -08:00
parent 66b0aca696
commit b1805dd254
1 changed files with 3 additions and 1 deletions

View File

@ -1104,7 +1104,9 @@ static bool showLocalRatsnest( TOOL_MANAGER* aToolMgr, BOARD* aBoard, const VECT
}
}
aToolMgr->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED );
auto frame = static_cast<PCB_BASE_FRAME*>(aToolMgr->GetEditFrame());
static_cast<PCB_DRAW_PANEL_GAL*>( frame->GetGalCanvas() )->RedrawRatsnest();
return true;
}