Bug 161532 - Selection in formula view is not reflected in the source view when visual editing is active
Summary: Selection in formula view is not reflected in the source view when visual edi...
Status: RESOLVED DUPLICATE of bug 160226
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
24.2.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Visual-Mode-of-Formula-Editor
  Show dependency treegraph
 
Reported: 2024-06-12 16:36 UTC by Pit Hauge
Modified: 2024-08-22 08:06 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 Pit Hauge 2024-06-12 16:36:08 UTC
Description:
There is no visible selection when clicking in the formula.
In version 7.6.7.2 the selected part was highlighted.

Steps to Reproduce:
1. Create a formula
2. Click in the formula
3. See command window

Actual Results:
No selection in the command window

Expected Results:
Show the part of the formula within the command window.


Reproducible: Always


User Profile Reset: No

Additional Info:
Found after update from version 7 to version 24
Comment 1 Pit Hauge 2024-06-13 13:03:58 UTC
It can be solved by deselecting "Visuelle Bearbeitung aktivieren" in Math-Options.
This Option is not visible when working with the formula editor in LibreOffice Writer.
Comment 2 Buovjaga 2024-08-21 06:30:16 UTC
I confirm (had to have a bit more complex formula than just a > b), but with visual editing not active the UI works a bit differently. You can click the elements in the rendered view to select them. Visual editing is WYSIWYG and I'm not sure what the expectation would be. That the source view tracks whatever you select in the rendered view?
Comment 3 V Stuart Foote 2024-08-21 14:03:09 UTC
This was one of the primary differences between the experimental (now graduated and default) Visual mode. They use different code paths within the sm module.

In the non-visual edit window mode, the edit cursor tracked with the highlighted sm formula node. 

While in visual edit mode, the edit window and StarMath entry syntax is secondary to the WYSIWYG visual cursor. The nodes are not linked to the formula, and one could argue the command window could even be toggled hidden.

We knew issues like this would emerge, and Dev recommendation [1] was to keep the Visual mode graduated--but revert making it default.

=-ref-=
[1] comments around https://bugs.documentfoundation.org/show_bug.cgi?id=160226#c7
Comment 4 Heiko Tietze 2024-08-22 08:06:30 UTC
Let's make it a duplicate. And switch visual editing off by default.

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