Bug 76259 - EDITING: incorrect undo result after pasting table in numbered list / heading
Summary: EDITING: incorrect undo result after pasting table in numbered list / heading
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks: Paste Writer-Tables Undo-Redo
  Show dependency treegraph
 
Reported: 2014-03-17 11:12 UTC by Dr. David Alan Gilbert
Modified: 2023-12-01 10:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A document with a table and numbered list (12.34 KB, application/vnd.oasis.opendocument.text)
2014-03-17 11:12 UTC, Dr. David Alan Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. David Alan Gilbert 2014-03-17 11:12:32 UTC
Created attachment 95925 [details]
A document with a table and numbered list

Problem description: 
Undoing an (accidental) paste of a table into a numbered list leaves the list with one extra entry

Steps to reproduce:
1. Start with attached simple example
2. Copy the whole table (Go to the top left corner, when the mouse pointer turns into right pointing diagonal click, Edit->copy)
3. Click after the 2 before Another heading - so the cursor is flashing just after that 2
4. Edit->Paste - table appears before the heading (reasonable?)
5. Ctrl-z to undo

Current behavior:
I see the result as:
  1 Heading!
    the table
  2 <a blank entry>
  3 The heading that was originally 2

There are no more undo steps available, and closing the document doesn't ask me to save.

Expected behavior:
  Exactly as it was prior to the paste - i.e. the last numbered entry should be 2
Operating System: Fedora
Version: 4.2.0.4 release
Comment 1 Dominique Boutry 2014-03-27 08:50:17 UTC
Reproduced with LibO 4.2.2.1 on Win7.

The "list" is the document outline. Before the paste, there are already 3 entries, from which the second one has a "no numbering" direct attribute. The copy occurs on a table which resides on this heading component (the second one).

The paste copies it in the third one, which become corrupted at this point (the "outline numbering" is no longer at the beginning of the component, it is interverted with the copied table).

It is therefore not surprising that the undo be unable to restore the previous situation. Set to NEW
Comment 2 Joel Madero 2015-05-02 15:44:18 UTC Comment hidden (obsolete)
Comment 3 Dr. David Alan Gilbert 2015-05-05 10:24:05 UTC
Still present in 4.4.3.2-1.fc22 (Fedora 22 x86-64)
Comment 4 QA Administrators 2016-09-20 09:37:56 UTC Comment hidden (obsolete)
Comment 5 Dr. David Alan Gilbert 2016-09-20 09:53:47 UTC
Still present in libreoffice-5.1.5.2-6.fc24.x86_64 (Fedora 24, x86-64)
Comment 6 QA Administrators 2018-04-22 02:32:24 UTC Comment hidden (obsolete)
Comment 7 Dr. David Alan Gilbert 2018-04-23 09:11:16 UTC
Still present in 
Version: 6.0.3.2
Build ID: 6.0.3.2-1.fc28

(Fedora 28's libreoffice-6.0.3.2-1.fc28.x86_64 package)
Comment 8 QA Administrators 2019-04-24 02:49:36 UTC Comment hidden (obsolete)
Comment 9 Dr. David Alan Gilbert 2019-04-29 11:41:20 UTC
Still present in:
6.2.2.2
Fedora 30's 6.2.2.2-4.fc30 build
Comment 10 QA Administrators 2021-04-29 04:26:15 UTC Comment hidden (obsolete)
Comment 11 Dr. David Alan Gilbert 2021-04-29 11:19:17 UTC
Still present in 7.1.2.2   libreoffice-core-7.1.2.2-2.fc34.x86_64
Comment 12 QA Administrators 2023-04-30 03:22:46 UTC Comment hidden (obsolete)
Comment 13 Stéphane Guillou (stragu) 2023-12-01 10:13:55 UTC
Reproduced in recent trunk build:

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 5589659829f8a1cef8ca1c8a468732105bbe231b
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Same in OOo 3.3, so inherited.