Bug 159949 - Formula Editor with wrong focus and text alignment
Summary: Formula Editor with wrong focus and text alignment
Status: RESOLVED DUPLICATE of bug 159600
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-28 23:20 UTC by Roberto Salomon
Modified: 2024-02-29 00:46 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Document with an inline formula correctly aligned to text. Edited with LOO 7.6.4 (14.90 KB, application/vnd.oasis.opendocument.text)
2024-02-28 23:21 UTC, Roberto Salomon
Details
Document with an inline formula incorrectly aligned and with the wrong text. LOO 24.2 (19.00 KB, application/vnd.oasis.opendocument.text)
2024-02-28 23:21 UTC, Roberto Salomon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Salomon 2024-02-28 23:20:05 UTC
Description:
The formula editor in 24.2 is displaying a new and incorrect behaviour. It attempts to edit directly on the formula rendering and records keyboard input on the formula editor field. Additionally, the rendered formula is not correctly aligned with the text.

Steps to Reproduce:
1.Create a new Writer document
2.After writing some text call the formula editor via menu or hot-key
3.Type the formula sqrt 4 = 4

Actual Results:
The "rendered" formula shows as sqrt 4 = 2 and the formula field as { sqrt ~ 4 { ~ = ~ } 2 }
The rendered formula is also horizontally misaligned with the text.

Expected Results:
The rendered formula should present the rendering of sqrt 4 = 2 as input in the editing field.
Formula should be correctly horizontally aligned with the text.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
The alignment issue is recorded in the odt file itself. If I open a file with a formula generated on 24.2 with Writer 7.6.4 the alignment error is visible. I have produced two files that show the correct and incorrect alignment result.
Comment 1 Roberto Salomon 2024-02-28 23:21:09 UTC
Created attachment 192854 [details]
Document with an inline formula correctly aligned to text. Edited with LOO 7.6.4
Comment 2 Roberto Salomon 2024-02-28 23:21:45 UTC
Created attachment 192855 [details]
Document with an inline formula incorrectly aligned and with the wrong text. LOO 24.2
Comment 3 Roberto Salomon 2024-02-28 23:22:53 UTC
Adding two files to show the results. The first file was created with LibreOffice 7.6.4 and the incorrect one with 24.2
Comment 4 Mike Kaganski 2024-02-28 23:49:21 UTC
You have set the "Version (earliest affected)" to 24.2.1.2. Are you sure you tried that version? Your "NOT OK" file is created using 24.2.0.3.
Comment 5 Mike Kaganski 2024-02-29 00:21:19 UTC
(In reply to Roberto Salomon from comment #0)
> The formula editor in 24.2 is displaying a new and incorrect behaviour. It
> attempts to edit directly on the formula rendering and records keyboard
> input on the formula editor field.

As explained in the release notes [1]:
> * Inline (Visual) formula editing mode is now enabled by default, graduated from experimental mode feature

> Additionally, the rendered formula is not
> correctly aligned with the text.

It is bug 159302, fixed in 24.2.1.2.
Comment 6 V Stuart Foote 2024-02-29 00:45:43 UTC

*** This bug has been marked as a duplicate of bug 159600 ***