Skip to content

Commit

Permalink
drawline: fixed "undo/redo" commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Oct 26, 2015
1 parent 281d670 commit 00b7b82
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions librecad/src/actions/rs_actiondrawline.cpp
Expand Up @@ -201,34 +201,36 @@ void RS_ActionDrawLine::commandEvent(RS_CommandEvent* e) {
if (checkCommand("help", c)) {
RS_DIALOGFACTORY->commandMessage(msgAvailableCommands()
+ getAvailableCommands().join(", "));
return;
}
break;
e->accept();
return;
}
break;

case SetEndpoint:
if (checkCommand("close", c)) {
close();
updateMouseButtonHints();
return;
e->accept();
updateMouseButtonHints();
return;
}

if (checkCommand("undo", c)) {
undo();
updateMouseButtonHints();
return;
e->accept();
updateMouseButtonHints();
return;
}
break;
break;

default:
break;
return;
}
if (checkCommand("redo", c)) {
redo();
updateMouseButtonHints();
return;
e->accept();
updateMouseButtonHints();
}
e->accept();
// RS_DEBUG->print("RS_ActionDrawLine::commandEvent: OK");
// RS_DEBUG->print("RS_ActionDrawLine::commandEvent: OK");
}

QStringList RS_ActionDrawLine::getAvailableCommands() {
Expand Down

0 comments on commit 00b7b82

Please sign in to comment.