diff --git a/src/document.h b/src/document.h index 69e45e51..f9c866ad 100644 --- a/src/document.h +++ b/src/document.h @@ -990,7 +990,7 @@ struct Document { ClearSelectionRefresh(); return _(L"Evaluation finished."); - case A_UNDO: + case wxID_UNDO: if (undolist.size()) { Undo(dc, undolist, redolist); return nullptr; diff --git a/src/main.cpp b/src/main.cpp index 5fc08cd9..f3891110 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,7 +47,6 @@ enum { A_SAVEALL = 500, A_COLLAPSE, A_NEWGRID, - A_UNDO, A_ABOUT, A_RUN, A_CLRVIEW, diff --git a/src/myframe.h b/src/myframe.h index 92c8bb84..bd9cf061 100644 --- a/src/myframe.h +++ b/src/myframe.h @@ -381,7 +381,7 @@ struct MyFrame : wxFrame { _(L"only sets the colors and style of the copied cell, and keeps the text")); MyAppend(editmenu, A_COLLAPSE, _(L"Collapse Ce&lls\tCTRL+l")); editmenu->AppendSeparator(); - MyAppend(editmenu, A_UNDO, _(L"&Undo\tCTRL+z"), + MyAppend(editmenu, wxID_UNDO, _(L"&Undo\tCTRL+z"), _(L"revert the changes, one step at a time")); MyAppend(editmenu, A_REDO, _(L"&Redo\tCTRL+y"), _(L"redo any undo steps, if you haven't made changes since")); @@ -649,7 +649,7 @@ struct MyFrame : wxFrame { AddTBIcon(_(L"Save (CTRL+s)"), wxID_SAVE, iconpath + L"filesave.svg"); AddTBIcon(_(L"Save As"), wxID_SAVEAS, iconpath + L"filesaveas.svg"); SEPARATOR; - AddTBIcon(_(L"Undo (CTRL+z)"), A_UNDO, iconpath + L"undo.svg"); + AddTBIcon(_(L"Undo (CTRL+z)"), wxID_UNDO, iconpath + L"undo.svg"); AddTBIcon(_(L"Copy (CTRL+c)"), wxID_COPY, iconpath + L"editcopy.svg"); AddTBIcon(_(L"Paste (CTRL+v)"), wxID_PASTE, iconpath + L"editpaste.svg"); SEPARATOR;