[gnome-calculator] Restore ans to previous value when undo.
- From: Arth Patel <arthpatel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Restore ans to previous value when undo.
- Date: Sun, 15 Jun 2014 21:44:10 +0000 (UTC)
commit 93287617c41496069aa2f88f4658341f5ac07db9
Author: Rodolphe PELLOUX-PRAYER <rodolphe damsy net>
Date: Fri Jun 13 10:08:11 2014 +0200
Restore ans to previous value when undo.
src/math-equation.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/math-equation.vala b/src/math-equation.vala
index 97ee98b..fba1172 100644
--- a/src/math-equation.vala
+++ b/src/math-equation.vala
@@ -495,6 +495,7 @@ public class MathEquation : Gtk.SourceBuffer
status = ("");
undo_stack.remove (state);
redo_stack.prepend (get_current_state ());
+ state.ans = undo_stack.nth_data (0).ans;
apply_state (state);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]