Bug 64828 - EDITING: After copy+paste of a heading and bullets, a bullet is added to the heading
Summary: EDITING: After copy+paste of a heading and bullets, a bullet is added to the ...
Status: RESOLVED DUPLICATE of bug 104945
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: low minor
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
: 109286 135289 (view as bug list)
Depends on:
Blocks: Paste Bullet-Number-Outline-Lists Heading-Numbering Writer-Styles-Heading
  Show dependency treegraph
 
Reported: 2013-05-21 14:24 UTC by kshahar
Modified: 2021-05-20 12:28 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
A document to reproduce this issue (8.83 KB, application/vnd.oasis.opendocument.text)
2013-05-21 14:24 UTC, kshahar
Details
64828_copyPasteDifferentNumbering.odt: multi-list copy proof-of-patch (14.01 KB, application/vnd.oasis.opendocument.text)
2021-05-04 11:42 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kshahar 2013-05-21 14:24:36 UTC
Created attachment 79620 [details]
A document to reproduce this issue

Steps to reproduce:
1. In the attached document, do "Select All" and then copy (Ctrl+A, Ctrl+C).
2. Place the cursor after "Bullet 3".
2. Press the return key ("Enter") twice, to get a new line.
3. Paste (Ctrl+V).

Current behavior:
The heading is indented a few times, and a bullet is before it. It is not possible to decrease the indent level and remove the bullet.
Note that the actual indentation level and bullet style depends on the heading style ("Heading 1", "Heading 2", etc.).

Expected behavior:
Text format should be preserved after pasting.
Operating System: Windows XP
Version: 4.0.3.3 release
Comment 1 Cor Nouws 2013-05-21 18:00:36 UTC
Hi kshara,

thanks for your report.
Indeed a bit wierd...

(In reply to comment #0)

> The heading is indented a few times, and a bullet is before it. It is not
> possible to decrease the indent level and remove the bullet.

You can do it in two ways :)

On the line,
 - choose Format > > Paragraph, tab Overview, section Numbering and choose None for Style for numbering
 - just hit Ctrl+Shft+F12

Having said that: it's behaviour that I would not expect.
Also: it is already present in the frist LibreOffice version I have..

But set to New
Comment 2 kshahar 2013-05-22 08:37:23 UTC Comment hidden (obsolete)
Comment 3 Michael Kleidt 2014-06-24 10:23:23 UTC
Still open in v4.2.4.2

The Problem is, that after the second RETURN, the new line has no bullet style anymore and the bullet indicator is set to false.

Even if you press RETURN more often before pasting, the heading still get the bullet style.

Where dose this information came from? Is there a more general problem with pasting and styles? There are several other bug reports according to pasting and unexpected styles.
Comment 4 QA Administrators 2015-07-18 17:44:11 UTC Comment hidden (obsolete)
Comment 5 kshahar 2015-07-19 07:24:01 UTC
Bug is still present in versions 4.4.2.2 and 4.4.4.3
The operating system is Windows 7 Home Premium with SP1
Comment 6 QA Administrators 2016-09-20 10:18:18 UTC Comment hidden (obsolete)
Comment 7 Michael Kleidt 2016-09-20 10:50:29 UTC
The Bug is still open in 
Version: 5.2.1.2 (x64)
Build ID: 31dd62db80d4e60af04904455ec9c9219178d620
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: de-CH (de_CH); Calc: group

The workaround has changed slitly: 
Select the line and hit Shift+F12
Comment 8 Xisco Faulí 2017-08-15 17:02:29 UTC
*** Bug 109286 has been marked as a duplicate of this bug. ***
Comment 9 QA Administrators 2018-08-16 02:37:36 UTC Comment hidden (obsolete)
Comment 10 Michael Kleidt 2018-08-16 07:42:47 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2019-08-19 06:58:14 UTC Comment hidden (obsolete)
Comment 12 Michael Kleidt 2019-08-19 08:00:21 UTC
Bug is still present in:
Version: 6.3.0.4 (x64)
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: de-CH (de_CH); UI-Language: en-US
Calc: threaded
Comment 13 Timur 2020-08-02 18:00:11 UTC
*** Bug 135289 has been marked as a duplicate of this bug. ***
Comment 14 Timur 2020-08-02 18:02:20 UTC
In duplicated bug were steps to create unbulleted heading inside bullets: https://bugs.documentfoundation.org/show_bug.cgi?id=135289#c4
If copied in selection from bullet to bullet, Heading without bullet inherits bullet upon paste in same file.
Comment 15 Justin L 2021-05-01 12:28:27 UTC Comment hidden (obsolete)
Comment 16 Justin L 2021-05-04 11:14:23 UTC
(In reply to Justin L from comment #15)
> This will be related to chapter numbering
Wrong. It happened with any grouping of numbered styles. This can be fixed in DocumentContentsManager.cxx's CopyImplImpl
-  if ( !pTextNd || !pTextNd->IsInList() )
+  if ( !pTextNd || !pTextNd->IsInList() || pTextNd->GetListId() != pEndTextNd->GetListId() )

But I don't know the implications of doing this. The OOo bug report related to this isn't terribly clear about what "right" and "wrong" behaviour is.
Comment 17 Justin L 2021-05-04 11:42:14 UTC
Created attachment 171631 [details]
64828_copyPasteDifferentNumbering.odt: multi-list copy proof-of-patch

I'm not clear on the difference between NumRule and ListId, so not sure which is a better equality test.
Comment 18 Justin L 2021-05-20 12:28:44 UTC

*** This bug has been marked as a duplicate of bug 104945 ***