Bug 139058 - Selection kind easy extended to an large selection
Summary: Selection kind easy extended to an large selection
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Selection
  Show dependency treegraph
 
Reported: 2020-12-19 09:47 UTC by Telesto
Modified: 2022-07-28 09:52 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Example file (34.67 KB, application/vnd.oasis.opendocument.text)
2020-12-19 09:47 UTC, Telesto
Details
same document with modified styles (10.28 KB, application/vnd.oasis.opendocument.text)
2022-04-13 01:51 UTC, stragu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-12-19 09:47:42 UTC
Description:
Selection kind easy extended to an large selection

Steps to Reproduce:
1. open the attached file
2. Place cursor left from Lorem
3. Drag to right it slightly down 
4. Lorem and heading below are selected
5. Undo selection
6. Place cursor right from lorem drag to left and slightly down
7. A position left of heading is included in the selection (.. which also pastes as heading style.. not intended) 

Actual Results:
Section to large

Expected Results:
Smaller selection & more control


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ (x64)
Build ID: e97a81e94511b52987a50b7bdb72c922899da588
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 2020-12-19 09:47:56 UTC
Created attachment 168320 [details]
Example file
Comment 2 Telesto 2020-12-19 09:48:20 UTC
FWIW open with say Word and compare
Comment 3 Telesto 2020-12-19 09:50:14 UTC
Also in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL
Comment 4 Telesto 2020-12-19 11:11:55 UTC
Also in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 5 Dieter 2021-07-04 10:12:12 UTC
I can't see image in Word, so I deleted it, also to reduce complexity of the example

6. Place cursor right from lorem drag to left and slightly down
7. A position left of heading is included in the selection (.. which also pastes as heading style.. not intended) 

You get the same result, if you place cursor left from Lorem and move it slightly down. So behaviour is consistent here. And I suppose, that the current behaviour is intended. So for me NOTABUG

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 949658028e722e5d2657b503eb20e16e41dbd8cf
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 6 stragu 2022-04-13 01:51:07 UTC
Created attachment 179497 [details]
same document with modified styles

With this modified document, I would agree this is a bit unexpected. I have changed the styles so the Text body style has 1 cm of spacing below the paragraph, and the Heading 1 style has no spacing above it.

a) With these styles, one would expect that selecting some of the Text body and shifting slighty below it wouldn't select the heading, as all this blank space is supposed to be part of the Text body style.
b) For the same reason, selecting some of the Headinng 1 and shifting a fair bit up into the blank space could be expected to select some text above.

I would agree with Telesto that this behaviour could be improved on, in particular for (a). I see two options:

1) Select the text only when the actual text is reached, or
2) Select the text when the space that belongs to the style is reached.

Tested with:

Version: 7.3.2.2 / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 7 stragu 2022-07-28 09:52:06 UTC
Not sure why this is assigned to me, probably a mistake.
Unassigning.