[gnome-calculator/gnome-3-10] Restore ans to previous value when undo.
- From: Arth Patel <arthpatel src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-calculator/gnome-3-10] Restore ans to previous value when undo.
 
- Date: Sun, 14 Sep 2014 18:41:30 +0000 (UTC)
 
commit 138121bfe6cc181c37e6d25877910389c96fcc16
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 495200c..a8c19b0 100644
--- a/src/math-equation.vala
+++ b/src/math-equation.vala
@@ -487,6 +487,7 @@ public class MathEquation : Gtk.TextBuffer
         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]