[gcalctool] Don't clear ans when clearing display (Bug #613552)



commit 231d27636fea48a44d5d29c1a94dbd3260ac7d49
Author: Robert Ancell <robert ancell gmail com>
Date:   Mon Mar 22 12:55:53 2010 +1100

    Don't clear ans when clearing display (Bug #613552)

 NEWS          |    4 +++-
 src/display.c |    1 -
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index 8c0e455..dc38577 100644
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,9 @@ Overview of changes in gcalctool 5.29.92
     * Fix errors in variable exponents (e.g. xy²)
 
     * Handle powers in convesion units, (e.g. 1m² in mm²)
- 
+
+    * Don't clear ans when clearing display (Bug #613552)
+
 Overview of changes in gcalctool 5.29.92
 
     * Add shortcuts to base buttons (Ctrl+B, Ctrl+O, Ctrl+D, Ctrl+H)
diff --git a/src/display.c b/src/display.c
index 6f5054f..b3ed337 100644
--- a/src/display.c
+++ b/src/display.c
@@ -1011,7 +1011,6 @@ display_do_function(GCDisplay *display, int function, gpointer arg, int cursor_s
     switch (function) {
         case FN_CLEAR:
             display_clear(display);
-            mp_set_from_string("0", ans);
             break;
 
         case FN_SHIFT:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]