Pcbnew minor fix (regression fix)

This commit is contained in:
charras 2010-02-07 11:39:22 +00:00
parent 113f83b254
commit f03bee4b03
1 changed files with 9 additions and 1 deletions

View File

@ -459,7 +459,7 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
}
// track Width control :
if( !flags ) // track Width control :
if( !flags )
{
if( Track->Type() == TYPE_VIA )
{
@ -482,6 +482,14 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
PopMenu->AppendSeparator();
}
else // Allows switching to an other track/via size when routing
{
ADD_MENUITEM_WITH_SUBMENU( PopMenu, Append_Track_Width_List( GetBoard() ),
ID_POPUP_PCB_SELECT_WIDTH,
_( "Select Track Width" ), width_track_xpm );
PopMenu->AppendSeparator();
}
// Delete control:
wxMenu* track_mnu = new wxMenu;
ADD_MENUITEM_WITH_SUBMENU( PopMenu, track_mnu,