Bug 81545 - Manual column break misplaced after copy-paste
Summary: Manual column break misplaced after copy-paste
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 112938 (view as bug list)
Depends on:
Blocks: Writer-Page-Break
  Show dependency treegraph
 
Reported: 2014-07-19 16:46 UTC by Jean-Baptiste Faure
Modified: 2023-03-08 20:54 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
bugdoc with manual column break (63.68 KB, application/vnd.oasis.opendocument.text)
2014-07-19 16:46 UTC, Jean-Baptiste Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Baptiste Faure 2014-07-19 16:46:36 UTC
Created attachment 103114 [details]
bugdoc with manual column break

Steps to reproduce:

1/ open attachment
2/ select text with yellow and blue background; there is a manual page break between these 2 paragraphs.
3/ copy and paste at the end of the document

Observed behavior: the manual column break is before of the yellow paragraph

Expected behavior: the manual column break should be between yellow and blue paragraphs.

Reproduced with version 4.3.1.0.0+ (Build ID: 6ace1e560373284a116c645bca82ff78ef112576) build at home under Ubuntu 14.04 x86-64

Best regards. JBF
Comment 1 Joel Madero 2014-07-19 17:08:53 UTC
Confirmed:

Ubuntu 14.04 x64
LibreOffice 4.1.4.2 release (updating version to reflect this)

New - confirmed
Minor - can slow down professional quality work but won't prevent it (you can always delete the column break and then insert a new one again
Low - default seems fine here unless we can determine that it's a regression.
Comment 2 Jean-Baptiste Faure 2014-07-19 17:37:19 UTC
Reproducible in LO 4.0.6 too.

Best regards. JBF
Comment 3 QA Administrators 2016-01-17 20:04:34 UTC Comment hidden (obsolete)
Comment 4 Jean-Baptiste Faure 2016-01-22 06:14:12 UTC Comment hidden (obsolete)
Comment 5 Telesto 2017-01-28 17:44:38 UTC
Still reproducible in:
Version: 5.4.0.0.alpha0+
Build ID: b41186a2fc49e440890b8c86e5367352ffaf9cd6
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-01-26_01:50:40
Comment 6 QA Administrators 2018-11-08 04:06:52 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2018-11-08 06:13:03 UTC
still repro in 

Version: 6.2.0.0.alpha1+
Build ID: 6896f39ffd8a6c4b32b8f601a6a93678247456bd
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-11-05_22:40:18
Locale: ru-RU (ru_RU); Calc: threaded
Comment 8 Buovjaga 2018-11-08 08:36:50 UTC
*** Bug 112938 has been marked as a duplicate of this bug. ***
Comment 9 QA Administrators 2019-11-09 03:53:34 UTC Comment hidden (obsolete)
Comment 10 Jean-Baptiste Faure 2019-11-16 22:04:53 UTC Comment hidden (obsolete)
Comment 11 Timur 2021-02-19 13:42:13 UTC
Repro 7.2+
Comment 12 Justin L 2021-03-04 08:54:33 UTC
I tested in LO 3.5 and it does the same thing. Thus I assume inherited from OOo.

No matter how many "yellow" paragraphs are copied, the column break comes before all of them.
Comment 13 Justin L 2021-03-04 12:47:03 UTC
This is intentional for some reason. DocumentContentOperationsManager::CopyImplImpl is pulling out the Breaks, and applying them at the beginning (as our experimenting has already confirmed).

This has been true since "initial import". https://cgit.freedesktop.org/libreoffice/core/diff/sw/source/core/docnode/ndcopy.cxx?id=84a3db80b4fd66c6854b3135b5f69b61fd828e62
Comment 14 Justin L 2021-03-04 16:17:35 UTC
Hmm - I think the problem is that the entire paragraph is NOT being selected. Certainly I wasn't doing that when I tested.  I randomly used 5.2, and made sure that I selected the entire blue paragraph (by ending the selection right before the 'D' in Des pas derrière lui… ), and then pasting it kept the column break where it belonged. This also works in 7.2+

Also note that it behaves differently if you paste into the middle of a paragraph or if you paste into an empty paragraph. That is when I see the column break being placed at the first pasted paragraph.

I'm not going to touch this bug. Any change likely breaks some scenario.
Comment 15 QA Administrators 2023-03-05 03:33:31 UTC Comment hidden (obsolete)
Comment 16 Jean-Baptiste Faure 2023-03-08 20:54:35 UTC
Nothing changed in 

Version: 7.5.2.0.0+ (X86_64) / LibreOffice Community
Build ID: 1c7b700179afda772af0f004e7ba497ba42fd8fc
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Ubuntu_20.04_x86-64
Calc: threaded

Best regards. JBF