gcalctool r1913 - in trunk: . gcalctool
- From: richb svn gnome org
- To: svn-commits-list gnome org
- Subject: gcalctool r1913 - in trunk: . gcalctool
- Date: Sun, 27 Jan 2008 00:27:29 +0000 (GMT)
Author: richb
Date: Sun Jan 27 00:27:28 2008
New Revision: 1913
URL: http://svn.gnome.org/viewvc/gcalctool?rev=1913&view=rev
Log:
* gcalctool/functions.c:
From Sami Pietila <sami pietila utu fi>
Fix for bug #512204 - Regression in (-,+) handling.
Modified:
trunk/ChangeLog
trunk/gcalctool/functions.c
Modified: trunk/gcalctool/functions.c
==============================================================================
--- trunk/gcalctool/functions.c (original)
+++ trunk/gcalctool/functions.c Sun Jan 27 00:27:28 2008
@@ -615,6 +615,11 @@
buttons[function].symname,
e->expression);
exp_replace(buf);
+ } else if ((((buttons[function].id == KEY_ADD)
+ || (buttons[function].id == KEY_SUBTRACT))
+ && !strcmp(e->expression, "Ans")
+ && (ex && ex->clear))) {
+ exp_replace(buttons[function].symname);
} else {
if (buttons[function].flags & FUNC) {
SNPRINTF(buf, MAXLINE, "%s(", buttons[function].symname);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]