Bug 137987 - Incorrect formula display
Summary: Incorrect formula display
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
7.0.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-04 15:17 UTC by dante19031999
Modified: 2022-05-06 14:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dante19031999 2020-11-04 15:17:16 UTC
Description:
Incorrect formula display
Binary operators get into the limits.
Does not happen with _ ^.
Does not happen with csub csub ...
Example: sum from a to b = 5 ff

Actual Results:
Incorrectly interpreted

Expected Results:
Correctly interpreted


Reproducible: Always


User Profile Reset: No



Additional Info:
Interpret correctly
Comment 1 dante19031999 2020-11-04 15:57:08 UTC
Note, the introduced code should give an error.
Comment 2 Xisco Faulí 2021-02-15 18:02:45 UTC
Thank you for reporting the bug.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 3 dante19031999 2021-02-16 09:01:31 UTC
> Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?

Yes.

Since I reported this some time has passed.
In the meanwhile I did dig the code and found out it actually is a feature.
It's made in purpose, but don't actually know why. 
So I'm not sure any more.
Comment 4 Rafael Lima 2022-05-06 14:29:31 UTC
Hi Dante,

I guess this happens because the "=" sign is a binary operator that forces both sides to be together. This is why the "b = 5" appears at the top of the sum operator.

Indeed you're right. This is a "feature" of the language used by LO Math.

I don't know where you were trying to get at with "sum from a to b = 5 ff", but maybe you would need to enclose some portions of the formula using "{" and "}".

Something like this:
{sum from a to b {}} =  {5 ff}

I'll close this as NOTABUG for now. If you have a different opinion, please reopen it.