abhisheknair / keynote-nf

Automatically exported from code.google.com/p/keynote-nf
0 stars 0 forks source link

Expression > Paste last result: Wrong behaviour after error in evaluation #328

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Make sure the status bar is displayed (View > Status Bar)
2. Enter a valid expression in a note and mark it, e.g. "6+7"
3. Expression > Evaluate inserts "13"
4. Enter an invalid expression in a note and mark it, e.g. "6:7"
5. Expression > Evaluate, Error message pops up, close it
6. Select menu entry Expression > Paste Last Result but don't click it yet
7. Status bar shows "Paste last eval result: 13"
8. Now click it. Replaces highlighted invalid expression with "0" instead of 
inserting something.

What is the expected output? What do you see instead?

"Paste Last Result" should not insert "0".
It should either insert the last valid result (13) or insert nothing (like when 
using it directly after the start of KeyNote without prior Expression > 
Evaluate). In the latter case, the status bar should show the same text as 
directly after start of KeyNote, the one without a value: "Paste result of last 
expression evaluated".

What version are you using? On what operating system?

KeyNote NF 1.7.8 on Windows XP SP3

Original issue reported on code.google.com by herbert.oppmann@siemens.com on 9 Jun 2010 at 1:42