@@ -1649,11 +1649,11 @@ WXCrystMainFrame::WXCrystMainFrame(const wxString& title, const wxPoint& pos, co
16491649 _T (" Add a new Single Crystal Diffraction Object" ));
16501650 objectMenu->Append (MENU_OBJECT_CREATE_GLOBALOPTOBJ, _T (" New Monte-Carlo Object" ),
16511651 _T (" Add a new Monte-Carlo Object" ));
1652- /*
1652+ # ifdef __FOX_UNDO__
16531653 wxMenu *menuEdit = new wxMenu;//
16541654 menuEdit->Append (wxID_UNDO, _T (" &Undo\t Ctrl-Z" ), _T (" Undo last change in objects (EXPERIMENTAL)" ));
16551655 menuEdit->Append (wxID_REDO, _T (" &Redo\t Ctrl-Y" ), _T (" Redo next change in objects (EXPERIMENTAL)" ));
1656- */
1656+ # endif
16571657 // FoxGrid////////////////////////////////////////////////////////////////////
16581658 wxMenu *gridMenu = new wxMenu;
16591659 gridMenu->Append (MENU_GRID_SERVER_RUN, _T (" &Run Server" ), _T (" Start Fox Grid Server" ));
@@ -1674,7 +1674,9 @@ WXCrystMainFrame::WXCrystMainFrame(const wxString& title, const wxPoint& pos, co
16741674 wxMenuBar *menuBar = new wxMenuBar ();
16751675 menuBar->Append (menuFile, _T (" &File" ));
16761676 menuBar->Append (objectMenu,_T (" &Objects" ));
1677- // menuBar->Append(menuEdit,_T("Edit"));
1677+ #ifdef __FOX_UNDO__
1678+ menuBar->Append (menuEdit,_T (" Edit" ));
1679+ #endif
16781680 #ifdef __FOX_COD__
16791681 menuBar->Append (codMenu,_T (" COD" ));
16801682 #endif
0 commit comments