Bug 161954 - When selecting a word or a paragraph in a locked cell in writer the selection does not work well
Summary: When selecting a word or a paragraph in a locked cell in writer the selection...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Tables-Select
  Show dependency treegraph
 
Reported: 2024-07-08 17:51 UTC by Daniele
Modified: 2025-03-18 12:00 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file with first column locked (54.05 KB, application/vnd.oasis.opendocument.text)
2024-07-08 17:52 UTC, Daniele
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele 2024-07-08 17:51:24 UTC
Description:
As above, When having two columns with text, with the first one locked, in the locked one, clicking twice with the mouse or trackpad on a word does not select it, clicking 3 times does not select the sentence until the full stop. Clicking 4 times does not select the paragraph. But a word, a sentence, and a paragraph is selected in the next cell to the right.

Steps to Reproduce:
1.Create a two column doc wit at least two sentences divided by . in each
2.Lock the first column (left)
3.Click twice in the first to select a word, 3 times for a sentence, 4 times for a paragraph

Actual Results:
A word, a sentence and a paragraph are selected in the non locked column (second from the left)

Expected Results:
A word, a sentence and a paragraph should be selected in the locked column (first from the left)


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.4.2 (AARCH64) / LibreOffice Community
Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2
CPU threads: 8; OS: macOS 14.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en.UTF-8); UI: en-US
Calc: threaded
Comment 1 Daniele 2024-07-08 17:52:39 UTC
Created attachment 195173 [details]
Test file with first column locked
Comment 2 m_a_riosv 2024-07-08 20:01:12 UTC
Reproducible with
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7a5d0c413f37e02356d0bd1e1da7a9445ee25fe8
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

First failing on my installed versions
Version: 24.2.0.0.alpha1 (X86_64) / LibreOffice Community
Build ID: 06946980c858649160c634007e5fac9a5aa81f38
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded

Last working on my installed versions
Version: 7.6.7.2 (X86_64) / LibreOffice Community
Build ID: dd47e4b30cb7dab30588d6c79c651f218165e3c5
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 3 raal 2024-07-09 15:10:03 UTC
For me, I'm on the Linux, this seems to have begun at the below commit in bibisect repository/OS bibisect-41max.
Adding Cc: to Michael Stahl ; Could you possibly take a look at this one?
Thanks
 fe0b6039671dbecf6bb537b155b260740bb994f7 is the first bad commit
commit fe0b6039671dbecf6bb537b155b260740bb994f7
Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Fri Sep 18 10:11:45 2015 +0800

    source-hash-2fc4af311656e7d019ca802d23444e5161f820ee
    
    commit 2fc4af311656e7d019ca802d23444e5161f820ee
    Author:     Michael Stahl <mstahl@redhat.com>
    AuthorDate: Thu Dec 13 01:28:59 2012 +0100
    Commit:     Michael Stahl <mstahl@redhat.com>
    CommitDate: Thu Dec 13 01:39:28 2012 +0100
    
        fdo#58142: fix frame selection in SwPageFrm::GetCrsrOfst:
    
        The function does not handle the case where a paragraph was hit but no
        background frame was hit properly, which may or may not (depending on
        the platform) cause it to return a position of a frame when that is
        undesirable, such as when called from SwWrtShell::UnSelectFrm().
    
        When UnselectFrm() leaves a frame selected pasting multiple pictures
        leads to a crash.
    
        (regression from e8fbe97900f13305b17015d9044993bde4adab36)
    
        Change-Id: I3604825f654c523a37f47a9fc660647d8b3e7077
Comment 4 Gabor Kelemen (allotropia) 2025-03-18 12:00:37 UTC
Regression commit was in 2012, not under warranty anymore:).
Feel free to sell this to anyone.