kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #32087
[PATCH] Restore "Flip Board" checkbox state when switching canvases
Another quick bug fix
-Jon
From 1b44ddc372d1bafba7e0132a04d09eadf5bdb449 Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@xxxxxxxxxxxxx>
Date: Wed, 29 Nov 2017 20:58:47 -0500
Subject: [PATCH] Restore "Flip Board" checkbox state when switching canvases
Fixes: lp:1733936
* https://bugs.launchpad.net/kicad/+bug/1733936
---
pcbnew/pcbframe.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pcbnew/pcbframe.cpp b/pcbnew/pcbframe.cpp
index 28cd22831..cad1d5075 100644
--- a/pcbnew/pcbframe.cpp
+++ b/pcbnew/pcbframe.cpp
@@ -766,6 +766,10 @@ void PCB_EDIT_FRAME::enableGALSpecificMenus()
if( GetMenuBar()->FindItem( id_list[ii] ) )
GetMenuBar()->FindItem( id_list[ii] )->Enable( enbl );
}
+
+ // Update settings for GAL menus
+ auto view = GetGalCanvas()->GetView();
+ GetMenuBar()->FindItem( ID_MENU_PCB_FLIP_VIEW )->Check( view->IsMirroredX() );
}
}
--
2.14.1
Follow ups