Bug 92735 - Reopening draws connector incorrectly
Summary: Reopening draws connector incorrectly
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.3.7.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Connectors
  Show dependency treegraph
 
Reported: 2015-07-14 14:50 UTC by Jan Nielsen
Modified: 2018-03-17 16:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example document showing the bug. (135.37 KB, application/vnd.oasis.opendocument.graphics)
2015-07-14 14:50 UTC, Jan Nielsen
Details
Screenshow showing connector drawn incorrectly. (240.09 KB, image/png)
2015-07-14 14:52 UTC, Jan Nielsen
Details
Screenshot showing connector drawn correctly after re-attachment. (240.95 KB, image/png)
2015-07-14 14:52 UTC, Jan Nielsen
Details
example saved in odg file (28.47 KB, application/vnd.oasis.opendocument.graphics)
2015-11-21 18:03 UTC, Tom
Details
example saved in fodg file (58.50 KB, application/vnd.oasis.opendocument.graphics-flat-xml)
2015-11-21 18:04 UTC, Tom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Nielsen 2015-07-14 14:50:54 UTC
Created attachment 117234 [details]
Example document showing the bug.

Please follow this algorithm to reproduce.

Please open attached file in Draw.
See the attached image (#1) where I've highlighted a connector that is draw in a rectangular shape.
Highlight it and disconnect the (bottom) end with the arrow head.
Reconnect the connector to the point where it was disconnected from.
The connector is now drawn as a arrow-headed line pointing downwards.
Save the file.
Close the file.
Re-open the file.
The connector is now drawn as a rectangle and look like image (#1) again.
Comment 1 Jan Nielsen 2015-07-14 14:52:02 UTC
Created attachment 117235 [details]
Screenshow showing connector drawn incorrectly.
Comment 2 Jan Nielsen 2015-07-14 14:52:22 UTC
Created attachment 117236 [details]
Screenshot showing connector drawn correctly after re-attachment.
Comment 3 Jan Nielsen 2015-07-14 14:54:42 UTC
The bug is present in both Still (4.3.7.2) and Fresh (4.4.4.3). I haven't checked any earlier versions.
Comment 4 Buovjaga 2015-07-29 18:18:42 UTC
Repro.

I seem to remember some similar bugs..

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+ (x64)
Build ID: e92a8b92072284fd7c37d7bb3e1e8fe72a185f35
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2015-07-22_21:46:26
Locale: fi-FI (fi_FI)
Comment 5 Tom 2015-11-21 10:30:29 UTC
Version: 5.0.3.2
Build ID: e5f16313668ac592c1bfb310f4390624e3dbfb75
Locale: de-DE (en_US.utf8)

Found a similar effect with the standard connector (skew = 0, spacings = 0 ... 0.5 cm) in LO 5.0.3.2 under Linux x86-64. My connector establishes a right angled connection between two objects. After save and re-load a rectangular loop is created within the connector. The connection can be corrected by clicking on one of the segment handles and move them a bit.

One gets the feeling, as if the routing information is not completely saved together with the rest of the connector information.

Regards
Tom
Comment 6 Tom 2015-11-21 18:02:13 UTC
Interestingly, I have found incorrect connectors only in re-opened odg files but not in re-opened fodg files. Please see the two examples attached. The odg example includes screenshots of the pre-save and post-open appearance.

Regards
Tom
Comment 7 Tom 2015-11-21 18:03:21 UTC
Created attachment 120705 [details]
example saved in odg file
Comment 8 Tom 2015-11-21 18:04:10 UTC
Created attachment 120706 [details]
example saved in fodg file
Comment 9 Heiko Tietze 2016-04-29 10:50:03 UTC
Confirming the issue (Example file with bug > reconnect objects > save > reopen = misaligned connector)

Version: 5.1.2.2.0+
Build ID: 5.1.2.2 Arch Linux build-1
Comment 10 QA Administrators 2017-05-22 13:39:24 UTC Comment hidden (obsolete)
Comment 11 eisa01 2018-03-17 13:51:44 UTC
Still present on Windows

This works fine for me on Mac master. On 6.0.2 mac release it briefly shows up wrong and then renders correctly after one second. On 6.0.2 windows it still renders wrong

May be worth if someone can check on Windows master

Version: 6.0.2.1 (x64)
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 1; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group

Version: 6.1.0.0.alpha0+
Build ID: 8e8dd8f320a3ff59ff8a16c1a7a867888ce80700
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-03-13_23:59:29
Locale: en-US (en_US.UTF-8); Calc: group
Comment 12 Buovjaga 2018-03-17 16:22:21 UTC
(In reply to eisa01 from comment #11)
> May be worth if someone can check on Windows master

Works OK

Version: 6.1.0.0.alpha0+ (x64)
Build ID: 2537d6897ae516d3b4d50f0e2885dc24949841bf
CPU threads: 4; OS: Windows 10.0; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-03-16_02:34:17
Locale: fi-FI (fi_FI); Calc: group