gcalctool r2025 - in branches/gnome-2-22: . gcalctool
- From: rancell svn gnome org
- To: svn-commits-list gnome org
- Subject: gcalctool r2025 - in branches/gnome-2-22: . gcalctool
- Date: Tue, 11 Mar 2008 23:57:22 +0000 (GMT)
Author: rancell
Date: Tue Mar 11 23:57:22 2008
New Revision: 2025
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2025&view=rev
Log:
Fixed bug #520525 - Clear display sets display to empty not "Ans"
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/gcalctool/functions.c
Modified: branches/gnome-2-22/gcalctool/functions.c
==============================================================================
--- branches/gnome-2-22/gcalctool/functions.c (original)
+++ branches/gnome-2-22/gcalctool/functions.c Tue Mar 11 23:57:22 2008
@@ -284,7 +284,7 @@
void
exp_clear()
{
- exp_replace("Ans");
+ exp_replace("");
}
@@ -292,7 +292,11 @@
usable_num(int MPnum[MP_SIZE])
{
struct exprm_state *e = get_state();
- return ce_parse(e->expression, MPnum);
+ if (e->expression[0] == '\0') {
+ return ce_parse("0", MPnum);
+ } else {
+ return ce_parse(e->expression, MPnum);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]