From ab8016abc4f054187672ebfdb2a3da2b7623fea8 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 4 Oct 2013 16:52:09 +0200 Subject: [PATCH] 3D viewer: Preference menu: fix a bug which displays incorrectly the actual display options state (always shown off) when starting the 3D viewer --- 3d-viewer/3d_toolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d-viewer/3d_toolbar.cpp b/3d-viewer/3d_toolbar.cpp index 5b49f781f5..9b8d7b7c99 100644 --- a/3d-viewer/3d_toolbar.cpp +++ b/3d-viewer/3d_toolbar.cpp @@ -206,8 +206,8 @@ void EDA_3D_FRAME::CreateMenuBar() item = AddMenuItem( prefsMenu, ID_MENU3D_ECO_ONOFF, _( "Show &Eco Layers" ), KiBitmap( edit_sheet_xpm ), wxITEM_CHECK ); - SetMenuBarOptionsState(); SetMenuBar( menuBar ); + SetMenuBarOptionsState(); } void EDA_3D_FRAME::SetMenuBarOptionsState()