Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-03-23 18:31:34 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-03-23 18:31:34 (GMT)
commita5bb954d46835869052fde18509cabba90cb4a23 (patch)
treea4bb1a4de75c555a3a3e52e818b9b0197c540dc8
parentd707c6db09df4676272ce36fbc946ccc62e697b4 (diff)
Fix to prevent help text from being copied into next calculation. SL#2307
-rw-r--r--calculate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/calculate.py b/calculate.py
index 529620a..e1523c9 100644
--- a/calculate.py
+++ b/calculate.py
@@ -813,7 +813,8 @@ class Calculate(ShareableActivity):
tlen -= (end - start)
if tlen == 0 and (input_str in self._chars_ans_diadic) and \
- self.parser.get_var('Ans') is not None:
+ self.parser.get_var('Ans') is not None and \
+ type(self.parser.get_var('Ans')) is not str:
ans = self.format_insert_ans()
self.text_entry.set_text(ans + input_str)
self.text_entry.set_position(len(ans) + len(input_str))