Bug 90942 - Editing: Cut and paste of bullets and numbering to the end of a paragraph causes last line to lose formatting (see comment 9)
Summary: Editing: Cut and paste of bullets and numbering to the end of a paragraph ca...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: x86-64 (AMD64) All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: Paste Bullet-Number-Outline-Lists
  Show dependency treegraph
 
Reported: 2015-04-29 16:34 UTC by Gordo
Modified: 2020-07-30 11:53 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (8.71 KB, application/vnd.oasis.opendocument.text)
2020-07-30 11:52 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gordo 2015-04-29 16:34:39 UTC
1. New Text Document.
2. Type “This is a test:” and Enter.
3. Type “test1”, Enter, “test2”, Enter, “test3”, and Enter.
4. Type “end of test.” and Enter.
5. Select “test1”, “test2”, and “test3”.
6. Numbering on from toolbar.
7. Place cursor after “test3” and select everything up to the end of the first line.
8. Ctrl + x (cut).
9. Ctrl + v (paste).
Result:
The numbering for “test3” has disappeared.
Expected Result:
Numbering is preserved.

10. Undo the cut and paste.
11. Place cursor at the beginning of line 4 and select everything up to the end of the first line.
12. Ctrl + x (cut).
13. Ctrl + v (paste).
Result:
Numbering is preserved.

14. Undo the cut and paste.
15. Select the three lines of the numbered list.
16. Ctrl + x (cut).
17. Place cursor at the end of the first line and Ctrl + v (paste).
Result:
The first line takes on the formatting of the destination paragraph.  The last line “test3” loses its formatting and an empty numbered paragraph has been inserted.  I think this can be explained by the fact that after the cut there is an empty numbered paragraph.  On pasting, this is moved down and renumbered.

If you select just the numbered list and cut and paste it to the end of a different paragraph then the first line takes on the formatting of the destination paragraph and the last line loses its formatting, but no empty numbered paragraph is present as explained above.

Version: 4.4.2.2
Build ID: c4c7d32d0d49397cad38d62472b0bc8acff48dd6
Comment 1 Buovjaga 2015-04-29 19:03:09 UTC
Reproduced steps 1-9 on LibO 5.0
10-13: if line 4 is understood to be "end of test.", I get the same result.
Reproduced steps 14-17 more or less. In preparation, I set the first line as bold and test 3 as italic. test1 became bold and test3 became bold italic.

On 3.5.0, steps 14-17 were the only ones I could reproduce.
Adding a bibisect request for the other steps.

Win 7 Pro 64-bit Version: 5.0.0.0.alpha1+ (x64)
Build ID: f0edb677f09ad338e22ac3b5d91497b4479e0b3c
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-27_01:54:20
Locale: fi_FI

Ubuntu 15.04 64-bit

LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 2 Matthew Francis 2015-08-14 03:33:39 UTC
The first issue seems to have begun at source-hash-ce97851773a06103504972eb2771eecd7dd81e36 in bibisect 43all, i.e. the source range

43c7830b03d141ae11d8617c0fdabefa32dd243c~1..ce97851773a06103504972eb2771eecd7dd81e36

Unfortunately this is a massive range, and also too old to readily build manually.


The only thing in the range that looks obviously somewhat relevant at a quick grep is

commit e9ec6d58b58739ce43ff563fd78c2326e11d1741
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
Date:   Fri Jan 27 10:32:23 2012 +0100

    Revert "Removed list and numbering paragraph styles and related option page"
    
    This reverts commits 359d0fbd03a68d9131e8fb25e7dac9f19ddf6dcb,
    6a15a2898b7f822ddfba23553dd127e25af15fff and
    21352f88caba9dee73d5a87c8e3724d17ac6b428.
    
    This change is not mature enought: needs more work



Probably at this point, this bug would need investigating directly with reference to the current code.
Comment 3 Robinson Tryon (qubit) 2015-12-13 11:12:00 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2017-01-03 19:47:20 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2018-12-24 03:43:55 UTC Comment hidden (obsolete)
Comment 7 Timur 2020-07-29 21:53:13 UTC
Please retest with current master.
Comment 8 Timur 2020-07-30 08:13:06 UTC
Please add sample document with all steps and screenshots showing selection and results.
Comment 9 Buovjaga 2020-07-30 11:52:37 UTC
Created attachment 163765 [details]
Example file

Now I can only repro steps 14-17

Version: 7.1.0.0.alpha0+
Build ID: d8270636a57e7dc68ede51308c380e2098f765d7
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: kf5
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded