Bug 134624 - Connectors mangled at gluepoints when pasting Drawing into Writer doc
Summary: Connectors mangled at gluepoints when pasting Drawing into Writer doc
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Connectors
  Show dependency treegraph
 
Reported: 2020-07-07 17:38 UTC by Jim Avera
Modified: 2023-10-01 05:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
unstable.odg (see Steps to Reproduce) (9.74 KB, application/vnd.oasis.opendocument.graphics)
2020-07-07 17:39 UTC, Jim Avera
Details
screenshots.png (25.99 KB, image/png)
2020-07-07 18:00 UTC, Jim Avera
Details
boxes.odg - simplified demo drawing (9.32 KB, application/vnd.oasis.opendocument.graphics)
2020-07-15 16:53 UTC, Jim Avera
Details
Draw vs Writer (10.09 KB, image/png)
2020-07-15 19:48 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2020-07-07 17:38:23 UTC
Description:
If a drawing is copy-and-pasted from a Draw doc into a Writer doc, sometimes connector lines are "re-routed", corrupting the drawing.

Steps to Reproduce:
1. Open the attahced "unstable.odg"
2. View->Zoom->100%  (not sure this matters)
3. Click the grouped object to select it (resize handles appear)
4. Control-C

5. File->New TEXT Document
6. Click in the Writer object and Control-V

Actual Results:
One or more connector lines are moved, corrupting the drawing

Expected Results:
Pasted drawing should match original


Reproducible: Always


User Profile Reset: No



Additional Info:
Note: Copy-and-paste seems to be the only usable way to embed an LO Drawing in a text document.  The Insert->OLE Object mechanism adds a large amount of empty vertical space which can not be removed, making it unusable except for full-page drawings. 

The copy-and-paste method seems to copy just the selected drawing objects without bringing over empty space as well.  The "connector" objects don't copy correctly, though.
Comment 1 Jim Avera 2020-07-07 17:39:06 UTC
Created attachment 162766 [details]
unstable.odg (see Steps to Reproduce)
Comment 2 Jim Avera 2020-07-07 18:00:12 UTC
Created attachment 162769 [details]
screenshots.png
Comment 3 Jim Avera 2020-07-15 16:53:08 UTC
Created attachment 163070 [details]
boxes.odg - simplified demo drawing
Comment 4 Jim Avera 2020-07-15 16:59:00 UTC
boxes.odg is a simplified example.

The bug seems related to glue-points on a rectangle edge which are connected to an outside object (with a connector) *and* have an interior line connecting to them.

The gluepoints seem to be lost (or moved to the corner of the rectangle) when the drawing is pasted into a Writer document.

STEPS:
  1. Open boxes.odg in Draw
  2. Control-A to select everything, then Control-C to copy
  3. File->New->Text Document
  4. Control-V to paste into the text doc

Note that the connectors moved to the corners of the rectangle, and attempting to re-position the connectors (after "Enter Group") fails as if the glue-points are no longer there.
Comment 5 Xisco Faulí 2020-07-15 19:47:35 UTC
Reproduced in

Version: 7.1.0.0.alpha0+
Build ID: d851a02df57ab378ed0cc6d9362516de09c3279c
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 6 Xisco Faulí 2020-07-15 19:48:09 UTC
Created attachment 163077 [details]
Draw vs Writer
Comment 7 Xisco Faulí 2020-07-15 19:49:47 UTC
Also reproduced in

Version: 5.2.0.0.alpha1+
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8)

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 8 Xisco Faulí 2020-07-15 19:50:16 UTC
I remember a similar issue so this might be a duplicate of an issue already reported
Comment 9 QA Administrators 2022-07-16 03:54:04 UTC Comment hidden (obsolete)
Comment 10 Jim Avera 2022-07-16 16:19:03 UTC
Bug still present (using demo in Comment #4).

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 8580cbdc19224bc2a467535cc527cd28b0f30879
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded