Bug 158419 - FILEOPEN: DOCX: fix cursor position in a paragraph line shrunk by the new justification algorithm
Summary: FILEOPEN: DOCX: fix cursor position in a paragraph line shrunk by the new jus...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:24.2.0
Keywords:
Depends on:
Blocks: DOCX-Paragraph DOCX-compatibilityMode-15
  Show dependency treegraph
 
Reported: 2023-11-28 13:57 UTC by László Németh
Modified: 2024-01-05 07:03 UTC (History)
1 user (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 László Németh 2023-11-28 13:57:13 UTC
Description:
text cursor doesn't follow the modified character positions of a line shrunk by the new justification algorithm.

Regression since fixing Bug 119908.

Steps to Reproduce:
1. Open the test document attached to Bug 158333.
2. Click the second line of the second paragraph, and move the text cursor: is not between the letter, but it follows the character positions of the line without shrinking -> typing put characters in a different position.

Actual Results:
Bad text cursor position 

Expected Results:
Correct text cursor position


Reproducible: Always


User Profile Reset: No

Additional Info:
See Bug 119908
Comment 1 Commit Notification 2023-11-28 23:16:47 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/20cbe88ce5610fd8ee302e5780a4c0821ddb3db4

tdf#119908 tdf#158419 sw smart justify: fix cursor position

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2023-11-30 07:36:06 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/93ab1bc6be7b46226874810ec4fc3c61d5d0fc7c

tdf#158419 sw: revert lost unit test testOfz64109

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.