Pre-select highlighted net in zone create dialog

Applies in GAL mode (legacy mode already did this).

Fixes: lp:1482866
* https://bugs.launchpad.net/kicad/+bug/1482866
This commit is contained in:
John Beard 2017-01-27 23:44:32 +08:00 committed by Maciej Suminski
parent bbf8a0fa06
commit 019b949646
1 changed files with 3 additions and 0 deletions

View File

@ -1286,9 +1286,12 @@ int DRAWING_TOOL::drawZone( bool aKeepout )
{
if( numPoints == 0 ) // it's the first click
{
const auto& board = *getModel<BOARD>();
// Get the current default settings for zones
ZONE_SETTINGS zoneInfo = m_frame->GetZoneSettings();
zoneInfo.m_CurrentZone_Layer = m_frame->GetScreen()->m_Active_Layer;
zoneInfo.m_NetcodeSelection = board.GetHighLightNetCode();
zoneInfo.SetIsKeepout( aKeepout );
m_controls->SetAutoPan( true );