Bug 164999 - Invalid cursor vertical position
Summary: Invalid cursor vertical position
Status: RESOLVED DUPLICATE of bug 159861
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-02 15:02 UTC by jeanmarcranger
Modified: 2025-10-24 18:40 UTC (History)
0 users

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 jeanmarcranger 2025-02-02 15:02:53 UTC
Description:
In some circumstances, when adding hyperlink to a note in calc, the cursor might end in an unexpected locations. See steps to reproduce below.

Steps to Reproduce:
1. Start a new calc document
2. Right-click any cell, "insert comment"
3. Paste an URLthat is longer than the current comment width
4. Press enter, to add more content to the comment, on a new line
5. Type something and watch the cursor position

Actual Results:
The cursor is located somewhere in the lines that contain the URL.

Expected Results:
The cursor is located on the line where I'm currently typing.


Reproducible: Always


User Profile Reset: No

Additional Info:
Also reproduced on Linux/Intel, on Debian's LO build. I'm expecting this to be platform-independent.
Comment 1 Cekomote 2025-02-04 17:52:08 UTC
Reproduced on Version 24.8.4.2 - MacOS 15.3

Not reproduced on 
Version: 24.2.7.2 (AARCH64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.7-0ubuntu0.24.04.2
Calc: threaded

Between the 2 versions, behavior changes at step 4

24.2.7.2 (and maybe after) -> When pressing enter, URL is detected and goes on one line, exceeding the width of the comment. Adding more content works fine.

24.8.4.2 (and maybe before)-> When pressing enter, URL is detected and stays multi-lines in the comment width but the cursor goes at the beginning on the second line. Adding more content adds it below the displayed URL but the cursor moves lines above.

Seems to be a regression somewhere between 24.2.7.2 & 24.8.4.2
Comment 2 Buovjaga 2025-10-24 18:40:05 UTC
Bibisected and found a duplicate.

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