Bug 158782 - Math: Formula in edit view changes with inline editing
Summary: Math: Formula in edit view changes with inline editing
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2023-12-19 17:14 UTC by Xisco Faulí
Modified: 2024-02-24 07:48 UTC (History)
3 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 Xisco Faulí 2023-12-19 17:14:09 UTC
This is an issue I found why writing a unittest for tdf#157569

Steps to reproduce:
1. Open attachment 41418 [details] from bug 32636
2. Doubleclick on the first formula
3. type x

-> The formula in the edit view at the bottom changes from 'y=a∙b' to '{ { xy = a } ∙ b }'. It should be 'xy=a∙b' instead

Reproduced in

Version: 24.2.0.0.beta1+ (X86_64) / LibreOffice Community
Build ID: 0034d2ab9382da86340738137218791a4ccc9c90
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: fr-FR (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 1 Xisco Faulí 2023-12-19 17:14:41 UTC
Regression introduced by:

author	Khaled Hosny <khaled@libreoffice.org>	2023-09-05 20:37:25 +0300
committer	خالد حسني <khaled@libreoffice.org>	2023-09-12 14:14:52 +0200
commit aa396ee162ee0eb223c90ab4f9bd55014cf94775 (patch)
tree 5f6a2a87429502d4a076d86569c55fd9f900dfe3
parent 26313599b0eae3b397bb341c63d185f8771af82d (diff)
starmath: Keep focus on math widget when inline editing is enabled

Bisected with: bibisect-linux64-24.2
Comment 2 Xisco Faulí 2023-12-19 17:15:09 UTC
@Mike, since you fixed bug 158766 I thought you might also be interested in this issue
Comment 3 ⁨خالد حسني⁩ 2024-02-24 07:48:11 UTC
This is a side effect of visual efiting being enable as it parses math equations into an internal tree and exports it back with each change, without trying to preserve the original content. This should go away if you disable visual editing. May be the option to enable/disable it should be added to te menu, since it now works immediately without needing to restart LibreOffice.