Bug 139668 - Anchor to paragraph not included in selection when selecting a full paragraph
Summary: Anchor to paragraph not included in selection when selecting a full paragraph
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 141210
  Show dependency treegraph
 
Reported: 2021-01-16 09:45 UTC by Telesto
Modified: 2022-06-14 11:31 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (649.40 KB, application/vnd.oasis.opendocument.text)
2021-01-16 09:45 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-01-16 09:45:05 UTC
Description:
Anchor to paragraph no included in selection when selecting a full pagraph

Steps to Reproduce:
1. Open the file
2. Place cursor at the end up the document
3. CTRL+SHIFT+ARROW UP
4. CTRL+X

Actual Results:
Image excluded

Expected Results:
Included


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ (x64)
Build ID: f2171af6ce3516598d9f8bac8294025a21a5b1a2
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2021-01-16 09:45:17 UTC
Created attachment 168932 [details]
Example file
Comment 2 Telesto 2021-01-16 09:49:11 UTC
Also in 4.4.7.2
Comment 3 Telesto 2021-01-16 09:52:58 UTC
@Michael
I'm having obviously my own user preferences.. but the whole how anchoring should behave is a kind of mystery.

So leaving it at the one who capable to change it.. and more aware about the impact of such a change
Comment 4 Telesto 2021-01-16 09:55:30 UTC
FWIW.. it's surely inconsistent.. from user perspective. Remove to paragraphs at the top.. So page starts with "Türkiye’nin' now it works as expected
Comment 5 Dieter 2021-05-01 05:32:34 UTC
I can't confirm it with

Version: 7.1.3.2 (x64) / LibreOffice Community
Build ID: 47f78053abe362b9384784d31a6e56f8511eb1c1
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 6 Buovjaga 2021-09-11 07:38:23 UTC
(In reply to Telesto from comment #0)
> Description:
> Anchor to paragraph no included in selection when selecting a full pagraph
> 
> Steps to Reproduce:
> 1. Open the file
> 2. Place cursor at the end up the document
> 3. CTRL+SHIFT+ARROW UP
> 4. CTRL+X

The original steps are not clear/correct, but it's true that there is inconsistency.

The image is anchored to the "Hello" paragraph, so obviously cutting only the "Türkiye’nin" is irrelevant.

However, if you drag the image anchor to the "Türkiye’nin" paragraph and try the cutting, the image is not cut.

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: e6a8d312d3d7e5d81c56d5ccc0508116dd283f1f
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 7 Buovjaga 2021-09-11 07:46:59 UTC
Hmm, actually I'll undo setting this to NEW, because like Telesto the logic of the behaviour is mysterious to me. Cutting the text of the last paragraph leaves behind an *empty* paragraph. When you continue to remove the paragraphs one by one, the image anchoring target moves. It gets deleted only after you have deleted Hello and a single empty paragraph remains.
Comment 8 Gabor Kelemen (allotropia) 2022-02-02 19:21:01 UTC
I played a bit with this and an inserted random image and a stock chart as an OLE object.
The grouped shape is anchored To paragraph, meaning selecting all text and cutting it leaves the empty paragraph behind. The objects are anchored to that and stay.
If you move the selection to include the previous empty paragraph and cut, then the paragraph is entirely cut so the image, grouped shape and chart are cut as well.

On the other hand if you change the anchor to To character and pull it inside the paragraph, then select the whole paragraph and cut, the objects are also cut.

I think this is NAB, the behavior is consistent.
Comment 9 Buovjaga 2022-02-02 20:23:42 UTC
Thanks for the insight, let's close.