Skip to content

Commit

Permalink
Use stock window ID for Redo
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo committed Aug 6, 2024
1 parent 3fd3a9c commit 87b3e8b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ struct Document {
return _(L"Nothing more to undo.");
}

case A_REDO:
case wxID_REDO:
if (redolist.size()) {
Undo(dc, redolist, undolist, true);
return nullptr;
Expand Down
1 change: 0 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ enum {
A_SAVE_AS_PNG,
A_HELPI,
A_HELP_OP_REF,
A_REDO,
A_FSWATCH,
A_DEFBGCOL,
#ifdef SIMPLERENDER
Expand Down
2 changes: 1 addition & 1 deletion src/myframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ struct MyFrame : wxFrame {
editmenu->AppendSeparator();
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"),
MyAppend(editmenu, wxID_REDO, _(L"&Redo\tCTRL+y"),
_(L"redo any undo steps, if you haven't made changes since"));
editmenu->AppendSeparator();
MyAppend(
Expand Down

0 comments on commit 87b3e8b

Please sign in to comment.