From 82d17cc236f56fca5798ab326fdaaf47bf9d27f6 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Sun, 4 Nov 2007 22:15:32 +0000 Subject: [PATCH] Edit Via menu item --- pcbnew/onrightclick.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/onrightclick.cpp b/pcbnew/onrightclick.cpp index 6879c423f9..4ec698bd1e 100644 --- a/pcbnew/onrightclick.cpp +++ b/pcbnew/onrightclick.cpp @@ -576,7 +576,8 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu ) ADD_MENUITEM_WITH_SUBMENU( PopMenu, track_mnu, ID_POPUP_PCB_EDIT_TRACK_MNU, _( "Change Width" ), width_track_xpm ); ADD_MENUITEM( track_mnu, ID_POPUP_PCB_EDIT_TRACKSEG, - _( "Edit Segment" ), width_segment_xpm ); + Track->Type()==TYPEVIA ? _( "Edit Via" ) : _( "Edit Segment" ), width_segment_xpm ); + if( !flags ) { ADD_MENUITEM( track_mnu, ID_POPUP_PCB_EDIT_TRACK,