[gcalctool] Don't solve already solved display when changing base
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcalctool] Don't solve already solved display when changing base
- Date: Mon, 1 Mar 2010 05:46:16 +0000 (UTC)
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]