From 188d7812ecb129cc3523c70d1f66edc944ecc057 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 13 Dec 2016 21:24:29 +0100 Subject: [PATCH] Disable Flip board view in Legacy mode (because the view cannot be flipped) --- pcbnew/menubar_pcbframe.cpp | 4 +++- pcbnew/pcbframe.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pcbnew/menubar_pcbframe.cpp b/pcbnew/menubar_pcbframe.cpp index d2507a20f6..f9e8507bf2 100644 --- a/pcbnew/menubar_pcbframe.cpp +++ b/pcbnew/menubar_pcbframe.cpp @@ -369,9 +369,11 @@ void PCB_EDIT_FRAME::ReCreateMenuBar() viewMenu->AppendSeparator(); AddMenuItem( viewMenu, ID_MENU_PCB_FLIP_VIEW, - _( "&Flip View" ), _( "Flips (mirrors) the board view." ), + _( "&Flip Board View" ), + _( "Flips (mirrors) the board view" ), KiBitmap( flip_board_xpm ), wxITEM_CHECK ); + viewMenu->AppendSeparator(); text = AddHotkeyName( _( "&Switch Canvas to Legacy" ), g_Pcbnew_Editor_Hokeys_Descr, diff --git a/pcbnew/pcbframe.cpp b/pcbnew/pcbframe.cpp index 91a04986d6..9e16bd1143 100644 --- a/pcbnew/pcbframe.cpp +++ b/pcbnew/pcbframe.cpp @@ -717,7 +717,8 @@ void PCB_EDIT_FRAME::enableGALSpecificMenus() ID_TUNE_SINGLE_TRACK_LEN_BUTT, ID_TUNE_DIFF_PAIR_LEN_BUTT, ID_TUNE_DIFF_PAIR_SKEW_BUTT, - ID_MENU_DIFF_PAIR_DIMENSIONS + ID_MENU_DIFF_PAIR_DIMENSIONS, + ID_MENU_PCB_FLIP_VIEW }; bool enbl = IsGalCanvasActive();