[gcalctool] Don't solve already solved display when changing base



commit 1e967d288dfe34e5d2eeb36ca17d52ac42759bb7
Author: Robert Ancell <robert ancell gmail com>
Date:   Mon Mar 1 15:04:20 2010 +1100

    Don't solve already solved display when changing base

 src/gtk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gtk.c b/src/gtk.c
index e93aea1..7a4cdbb 100644
--- a/src/gtk.c
+++ b/src/gtk.c
@@ -1149,7 +1149,7 @@ static void
 do_base(gint base)
 {
     /* If has a number already in a base, then solve and convert it */
-    if (display_is_number_with_base(&v->display))
+    if (!display_is_result(&v->display) && display_is_number_with_base(&v->display))
         do_button(FN_CALCULATE, NULL);
 
     if (display_is_result(&v->display)) {



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