From 7b596e8ac3d6c800ec10072e502e4ba3f8ec68c1 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sun, 1 Sep 2019 20:42:52 +0800 Subject: [PATCH] Fix toolbar height with wxWidgets 3.1 --- src/xmlcopyeditor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index 7dddaec..0c256e0 100644 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -947,14 +947,6 @@ MyFrame::MyFrame ( stylePosition = aboutPosition = wxDefaultPosition; styleSize = wxSize ( 720, 540 ); - showTopBars ( -#ifndef __WXOSX__ - toolbarVisible -#else - false -#endif - ); - long style = wxAUI_NB_TOP | wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_MOVE | @@ -1066,6 +1058,14 @@ MyFrame::MyFrame ( manager.Update(); + showTopBars ( +#ifndef __WXOSX__ + toolbarVisible +#else + false +#endif + ); + wxAcceleratorEntry entry ( wxACCEL_CTRL, WXK_F4, wxID_CLOSE ); wxAcceleratorTable accel ( 1, &entry ); SetAcceleratorTable ( accel );