Bug 126946 - Formula will be displayed after re-type it into cell
Summary: Formula will be displayed after re-type it into cell
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-15 13:41 UTC by RobG
Modified: 2019-08-15 15:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example files (11.56 KB, application/x-zip-compressed)
2019-08-15 13:42 UTC, RobG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RobG 2019-08-15 13:41:18 UTC
Description:
A formula (which returns a text as result) will be displayed after re-type it into cell when cell format is "Text". When cell format is "Number" it works.

Steps to Reproduce:
Pre-Step:

Add the Basic-Macro "Toto_Macro.bas" which returns a text based on numeric parameters.

1. Open Toto.xlsx
2. Select cell AB2
3. Goto input line and copy the formula into clipboard
4. Press strg+x to remove it
5. Press strg+v to add it and press enter
Result: Formula result will be displayed (ok)

6. Change format of cell AB2 to "Text"
7. Re-Run steps 3-5
Result: Formula will be displayed (Bug)

Actual Results:
Formula itself will be displayed.

Expected Results:
Result of formula should be displayed.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 RobG 2019-08-15 13:42:21 UTC
Created attachment 153415 [details]
Example files
Comment 2 Oliver Brinzing 2019-08-15 15:23:06 UTC

(In reply to RobG from comment #0)

> 6. Change format of cell AB2 to "Text"
> 7. Re-Run steps 3-5
> Result: Formula will be displayed (Bug)

if you format a cell with "Text", everything what is entered afterwards is treated as text, so a formula will not be evaluated.

https://help.libreoffice.org/Calc/Formatting_Numbers_as_Text