fix for history action

This commit is contained in:
serso 2011-09-16 17:55:00 +04:00
parent cd80bf7751
commit 9846e03ddb

View File

@ -114,8 +114,8 @@ public class CalculatorView implements CursorControl{
// actually nothing shall be logged while text operations are done
evaluate(editorStateAfter, true);
if (history.isRedoAvailable()) {
history.redo(getCurrentHistoryState());
if (history.isUndoAvailable()) {
history.undo(getCurrentHistoryState());
}
saveHistoryState();
}