Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/calculate.py
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2007-09-20 18:58:27 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2007-09-20 18:58:27 (GMT)
commit0cc4c40c5d8ba40dc45bb2c85189f164ea989c34 (patch)
tree0d333f1f9185e330978f07f304076bc6c1673294 /calculate.py
parent30761286079586e98a682e1e9cb91d1b3d3ec5cf (diff)
Fixed #3625
Diffstat (limited to 'calculate.py')
-rw-r--r--calculate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/calculate.py b/calculate.py
index 09fd532..cb59388 100644
--- a/calculate.py
+++ b/calculate.py
@@ -749,7 +749,8 @@ class Calculate(activity.Activity):
tlen -= (end - start)
if tlen == 0 and (str in self.parser.get_diadic_operators() \
- or str in self.parser.get_post_operators()): # and \
+ or str in self.parser.get_post_operators()) and \
+ self.parser.get_var('Ans') is not None: # and \
# logic better? (str not in self.parser.get_pre_operators() or str == '+'):
ans = self.parser.ml.format_number(self.parser.get_var('Ans'))
self.text_entry.set_text(ans + str)