Bug 131331 - Header: If you select paragraph in the header, selection includes a frame, that is anchored to that paragraph
Summary: Header: If you select paragraph in the header, selection includes a frame, th...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected
Depends on:
Blocks: Writer-Header-Footer Frame
  Show dependency treegraph
 
Reported: 2020-03-13 17:59 UTC by R. Green
Modified: 2024-08-24 11:58 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer doc demonstrating a text selection issue (24.12 KB, application/vnd.oasis.opendocument.text)
2020-03-13 17:59 UTC, R. Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. Green 2020-03-13 17:59:36 UTC
Created attachment 158671 [details]
Writer doc demonstrating a text selection issue

Version: 6.4.1.2 (x64)
Build ID: 4d224e95b98b138af42a64d84056446d09082932
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: en-GB (en_GB); UI-Language: en-GB
Calc: threaded

This problem occurs in Headers (and maybe Footers as well?) but AFAIK not in the main body of text.

1. Open the attached writer document.
2. On page 2, select the text in the header ("Recto Page") using triple click or any other method.
3. Cut the text.

EXPECTED RESULT: Only the Header text should be selected.
ACTUAL RESULT: The frame, which is separate from the text (and contains the page number) is WRONGLY selected as well. Note that if you reduce the selection by one letter, the frame is released.
Comment 1 Dieter 2020-03-14 13:24:09 UTC
I confirm this behaviour with

Version: 7.0.0.0.alpha0+ (x64)
Build ID: c63148ba139bd6b9ae7a0f9e24e51f29e5370963
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded

In normal text this doesn't happen, although frame is anchored to the paragraph.

It doesn't happen with

Version: 6.3.5.2 (x64)
Build-ID: dd0751754f11728f69b42ee2af66670068624673
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: threaded
Comment 2 Xisco Faulí 2020-03-17 11:33:16 UTC
The behaviour changed after https://cgit.freedesktop.org/libreoffice/core/commit/?id=91b2325808a75174f284c48c8b8afc118fad74e4.
@Michael, is this the new expected behaviour ?
Comment 3 Michael Stahl (allotropia) 2020-03-23 12:39:47 UTC
(In reply to Xisco Faulí from comment #2)
> The behaviour changed after
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=91b2325808a75174f284c48c8b8afc118fad74e4.
> @Michael, is this the new expected behaviour ?

yes, if you select an entire header then everything that's anchored in the header will also be selected - that's the intuitive thing to do.
Comment 4 Dieter 2020-03-23 12:50:14 UTC
(In reply to Michael Stahl (CIB) from comment #3)
> yes, if you select an entire header then everything that's anchored in the
> header will also be selected - that's the intuitive thing to do.

Thanks for clarification. But I disagree, that this is intuitive. If header has only one paragraph (I assume, that are the most cases), it's not possible to mark only the text. It's good to have the possibility to mark also the frame, but I would expect, that it's also possible to mark only the text of the heading. So for me not a regression, but still a bug.
Comment 5 QA Administrators 2024-02-04 03:14:05 UTC Comment hidden (obsolete)
Comment 6 BogdanB 2024-08-24 11:58:47 UTC
Also in
Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded